Mysql错误处理: /usr/bin/mysqld_safe: line xxx: xxxx Killed ... (mysql自动停止 Plugin FEDERATED is disabled 的完美解决方法)

哈哈哈,问题总算解决,内心抑不住的开心

centos mysql 问题:Plugin 'FEDERATED' is disabled. /usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist

早上看到服务器mysql挂掉了。于是重启mysql,启动失败:

/usr/bin/mysqld_safe: line 183: 23638 Killed                  nohup /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock < /dev/null > /dev/null 2>&1
MySQL Daemon failed to start.
Starting mysqld:                                           [FAILED]

 

 

 

解决:

vim /etc/my.cnf

[root@YoujiePMP ~]# vim /etc/my.cnf

加入配置:

key_buffer=16K
table_open_cache=4
query_cache_limit=256K
query_cache_size=4M
max_allowed_packet=1M
sort_buffer_size=64K
read_buffer_size=256K
thread_stack=64K
innodb_buffer_pool_size = 56M

 

 

 

保存。重启mysql

service mysqld restart

解决之。

posted @ 2019-02-01 10:43  搬砖小伙子  阅读(2527)  评论(2编辑  收藏  举报