Linux CentOS 启动mysql提示错误:Table 'mysql.plugin' doesn't exist

时间:2021-09-01 22:59:59

CentOS 启动mysql提示错误:Table 'mysql.plugin' doesn't exist


在linux CentOS下启动mysql时发现表mysql.plugin不存在,不合理啊,我明明创建了但还是总是提示这个错误,网上搜索原因后发现不能直接创建,需要使用mysql_install_db安装配置。


提示错误:

2015-01-23 14:58:02 30348 [Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist
2015-01-23 14:58:02 30348 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.


解决方法:linux shell命令下启动

[~]  /usr/bin/mysql-install-db --user=root --datadir=/var/lib/mysql/data


然后启动:

[~] /etc/init.d/mysql start


启动成功!