sudo service mysql stop
ERROR! MySQL server PID file could not be found!
sudo service mysql status
ERROR! MySQL is running but PID file could not be found
解决:
方法一
:
1.正常按顺序关闭集群进程
2.重启该节点的虚拟机
3.
sudo service mysql status
显示:succes!Mysql running(1904)
4.登录:
mysql -uroot -p123456
方法二
:
①杀进程
[atguigu@hadoop103 mysql-libs]$ ps -ef | grep mysql
[atguigu@hadoop103 mysql-libs]$ sudo kill -9 进程
②重新启动
[atguigu@hadoop103 mysql-libs]$ sudo service mysql start