无法在centos 6.9上启动mysql服务器 [英] Can't start mysql server on centos 6.9
问题描述
我的操作系统是centos 6.9。
My OS is centos 6.9.
我将MySQL版本从5.1更新到5.5,然后它开始工作了。
但是在重新启动sshd之后,我无法启动MySQL服务器。
I updated the MySQL version from 5.1 to 5.5 and then it worked. But after sshd restarted, I can't start the MySQL server.
我尝试过:
# service mysql start
错误消息:
Starting MySQL.Logging to '/var/lib/mysql/host.err'.
200425 12:44:09 mysqld_safe Directory '/var/lib/mysql' for UNIX socket file don't exists.
ERROR! The server quit without updating PID file (/var/lib/mysql/host.pid).
/ var / lib / mysql目录不存在,我不确定为什么不存在存在。
/var/lib/mysql directory doesn't exist and I am not sure why it doesn't exist.
我读过很多论坛帖子,但我还没有解决。
I've read many forum posts but I didn't solve this yet.
如何我可以解决这个问题吗?
How can I solve this?
任何帮助都是值得的。
推荐答案
如果/ var / lib / mysql不存在,这非常令人担忧。是否在未挂载的其他文件系统上?如果幸运的话,只会丢失挂载点,而不会挂载文件系统。如果不是这种情况,我只能希望您有一个备份。 :-(
If /var/lib/mysql doesn't exist, that is extremely concerning. Is it on a different file system that is not mounted? If you are lucky, only the mount point is missing and the file system isn't mounted. If that is not the case, I can only hope you have a backup. :-(
这篇关于无法在centos 6.9上启动mysql服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!