1. 程式人生 > >Linux CentOS 啟動mysql提示錯誤:Table 'mysql.plugin' doesn't exist

Linux CentOS 啟動mysql提示錯誤:Table 'mysql.plugin' doesn't exist

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

啟動成功!