centos 6.9 启动mysql_无法在centos 6.9上启动mysql服务器

bd96500e110b49cbb3cd949968f18be7.png

My OS is centos 6.9.

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.

I tried :

# service mysql start

Error message:

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 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?

Any help is appreciated.

解决方案

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. :-(

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值