“sudo start mysql”导致错误

“sudo start mysql”导致错误
minzaw@Dell-PC:~$ sudo start mysql
[sudo] password for minzaw: 
start: *Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused*
minzaw@Dell-PC:~$ sudo restart mysql
restart: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

答案1

如果您使用 Ubuntu 15.04 或更新版本,请尝试sudo systemctl start mysql,或者一般地sudo systemctl <action> <service-name>控制守护进程。

相关内容