红联Linux门户
Linux帮助

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

发布时间:2016-12-22 09:28:35来源:linux网站作者:KnowedgetimeII
在Linux CentOS下启动mysql时发现表mysql.plugin不存在,不合理啊,我明明创建了但还是总是提示这个错误,网上搜索原因后发现不能直接创建,需要使用mysql_install_db安装配置。
 
提示错误:
[Note] Plugin 'FEDERATED' is disabled.
/usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist
[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
启动成功!
 
本文永久更新地址:http://www.linuxdiyf.com/linux/27130.html