我正在尝试使用php wp-cli.phar db export
导出wordpress数据库,但出现此错误
mysqldump: Got error: 2002: "Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)" when trying to connect
寻找答案后,我尝试使用sudo systemctl start mysql
启动mysql.service,但未找到
Failed to start mysql.service: Unit mysql.service not found.
我还尝试使用sudo systemctl start mariadb
启动mariadb.service,但是它不起作用
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
我找不到有关如何解决这些错误的答案,有人可以帮助我吗?