执行systemctl start mysqld.service报错
Job for mysqld.service failed because the control process exited with error code.
See "systemctl status mysqld.service" and "journalctl -xe" for details.
执行systemctl start mysqld.service报错
Job for mysqld.service failed because the control process exited with error code.
See "systemctl status mysqld.service" and "journalctl -xe" for details.
照提示输入命令
systemctl status mysqld.service 或者 journalctl -xn
1
但是显示的 信息并不能提供服务启动失败的真正原因
进一步查看日志:
vi /var/log/mysqld.log
1
原因分析: 端口3306被占用
解决:
ps -aux|grep mysql
删除mysql 进程
kill -9 pid