0

我正在尝试导出我的 wordpress 数据库,php wp-cli.phar db export但出现此错误

mysqldump: Got error: 2002: "Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)" when trying to connect

寻找答案后,我尝试启动 mysql.servicesudo systemctl start mysql但找不到

Failed to start mysql.service: Unit mysql.service not found.

我也尝试过启动 mariadb.servicesudo systemctl start mariadb但它不起作用

Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.

我找不到有关如何解决这些错误的答案,有人可以帮我吗?

4

0 回答 0