php – MySQL守护程序无法启动 – centos 6

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了php – MySQL守护程序无法启动 – centos 6脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
编辑:查看已签名的答案评论,以解决您的问题.

每当我尝试启动sqlD服务,我得到MySQL守护程序无法启动.我试图通过执行以下操作“开始”服务:

service MysqLd start

当我输入:MysqL

我得到:

ERROR 2002 (HY000): Can't connect to local MysqL server through socket '/VAR/lib/MysqL/MysqL.sock' (2)

知道该目录中应该一个MysqL.sock文件,所以我创建一个.但文件只是自动删除自己,我继续得到错误2002.

由于错误,我也无法登录PHPMyAdmin.我可以访问PHPmyadmin页面,但登录时我得到:#2002无法登录MysqL服务器

编辑:

这是我的MysqL.LOG文件

131201 13:05:07 MysqLd_safe MysqLd From pid file /var/run/MysqLd/MysqLd.pid ended
131201 13:18:18 MysqLd_safe Starting MysqLd daemon wITh databases from /var/lib/MysqL
131201 13:18:18 [Note] Plugin 'FEDERATED' is disabled.
/usr/libexec/MysqLd: Can't find file: './MysqL/plugin.frm' (errno: 13)
131201 13:18:18 [ERROR] Can't oPEn the MysqL.plugin table. Please run MysqL_upgrade to create it.
131201 13:18:18 InnoDB: The InnoDB memory heap is disabled
131201 13:18:18 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131201 13:18:18 InnoDB: ComPressed tables use zlib 1.2.3
131201 13:18:18 InnoDB: Using Linux native aiO
131201 13:18:18 InnoDB: Initializing buffer pool,size = 128.0M
131201 13:18:18 InnoDB: completed initialization of buffer pool
131201 13:18:18  InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means MysqLd does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
131201 13:18:18 MysqLd_safe MysqLd from pid file /var/run/MysqLd/MysqLd.pid ended

我跑了MysqL_upgrade并得到

Looking for 'MysqL' as: MysqL
Looking for 'MysqLcheck' as: MysqLcheck
Fatal error: Upgrade Failed
这个错误的最可能的原因是你的MysqL服务器没有运行.当您输入MysqL时,您正在执行MysqL客户端.

尝试:

# sudo service MysqL start
# MysqL

更新(在OP包括登录问题后;从以下评论):

脚本宝典总结

以上是脚本宝典为你收集整理的php – MySQL守护程序无法启动 – centos 6全部内容,希望文章能够帮你解决php – MySQL守护程序无法启动 – centos 6所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。