您的位置:首页 > 运维架构 > Linux

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

2015-01-23 15:16 579 查看
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

启动成功!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  mysql database linux
相关文章推荐