作者:_A-lan | 来源:互联网 | 2023-10-13 13:48
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 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
解决之。