Mysql服务无法启动

时间:2013-09-14 12:06:53

标签: mysql linux centos

我在centos distributed和cPanel / WHM控制面板的linux环境下运行mysql

我跟踪mysql日志,我得到了

130914  6:49:08 [Note] Plugin 'FEDERATED' is disabled.
130914  6:49:08 [ERROR] No paths allowed for shared library
130914  6:49:08 [Warning] Couldn't load plugin named '68' with soname 'افص�حات افإضا�ٍة فكلتدٍات اف�ٍ بٍ'.
130914  6:49:08 [ERROR] Can't open shared library '/usr/lib64/mysql/plugin/Cybernetec's Hacks Template Group' (errno: 0 cannot open shared object file: No such file or directory)
130914  6:49:08 [Warning] Couldn't load plugin named '487' with soname 'Cybernetec's Hacks Template Group'.
130914  6:49:08 [ERROR] Can't open shared library '/usr/lib64/mysql/plugin/Cyb - ChatBox - CT' (errno: 0 cannot open shared object file: No such file or directory)
130914  6:49:08 [Warning] Couldn't load plugin named '488' with soname 'Cyb - ChatBox - CT'.
130914  6:49:08 [ERROR] Can't open shared library '/usr/lib64/mysql/plugin/Cyb - ChatBox - IL' (errno: 0 cannot open shared object file: No such file or directory)
130914  6:49:08 [Warning] Couldn't load plugin named '489' with soname 'Cyb - ChatBox - IL'.
130914  6:49:08 [ERROR] Can't open shared library '/usr/lib64/mysql/plugin/[you]' (errno: 0 cannot open shared object file: No such file or directory)
130914  6:49:08 [Warning] Couldn't load plugin named '93' with soname '[you]'.
130914  6:49:08 [ERROR] No paths allowed for shared library
130914  6:49:08 [Warning] Couldn't load plugin named '117' with soname 'افإستبداف افآفٍ'.

我可以使用跳过授权表选项

启动mysql
/etc/init.d/mysql start --skip-grant-tables

2 个答案:

答案 0 :(得分:1)

问题是mysql数据库被其他表覆盖

我删除路径中的mysql文件夹 / var / lib / mysql /

我通过运行命令删除了rpm mysql文件

# rpm -qa | grep -i mysql  > /mysql.txt

# for i in `cat /mysql.txt`;do rpm -e $i;done

然后我跑

/scripts/upcp

再次构建mysql

我的mysql已经启动并再次运行

答案 1 :(得分:0)

您的Mysql配置似乎状况不佳。

1-检查my.cnf配置文件中是否有以'plugin-load'开头的奇怪行。这些行应如下所示:(应该只包含对.so文件的引用)

plugin-load=myplugin=somepluglib.so

2-或者你有一个损坏的'mysql.plugin'表(或者文件系统损坏......希望你有备份...)