【发布时间】:2017-02-03 14:08:04
【问题描述】:
我收到此错误
cannot connect to mysql server through socket 'var/run/mysqld/mysqld.sock'(2)
当我单击 mysql(Emma) localhost 并收到此错误时,我 googling 它但没有用,并且还给出了以下命令,我尝试过但只收到错误。
$ps ax | grep mysql
4348 pts/5 S+ 0:00 grep --color=auto mysql
$sudo service mysql start
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
$sudo /etc/init.d/mysql start
[....] Starting mysql (via systemctl): mysql.serviceJob for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. failed!
我该怎么办,谁能给我建议
【问题讨论】:
-
错误消息显示:“请参阅
systemctl status mysql.service了解详细信息”。如果你运行systemctl status mysql.service,输出是什么? -
是的,我也使用此命令 systemctl start mysql ,结果是 mysql.service 的作业失败,因为控制进程退出并显示错误代码。有关详细信息,请参阅“systemctl status mysql.service”和“journalctl -xe”。 @iblamefish
标签: mysql ubuntu-16.04 emma