重启服务器之后Mysql数据库无法启动
- 服务器重启之后发现Navicat连接数据库连接不上如下提示:
- 在服务器执行命令:
systemctl restart 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.
-
使用执行命令启动同样提示错误。
-
解决步骤
①、执行命令启动mysql服务
systemctl restart mysqld.service # 重启mysql服务
重启后会看到有错误提示其中代码中有这样一句代码“ See “systemctl status mysqld.service” and “journalctl -xe” for details.”根据提示执行命令。
②、查看启动日志详细信息
systemctl restart mysqld.service # 查看mysql服务