1. 程式人生 > >Plugin 'FEDERATED' is disabled. /usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist

Plugin 'FEDERATED' is disabled. /usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist

find inno hadoop ibdata1 img -s initial 數據庫 原因

問題:在linux上安裝mysql的時候出現Plugin ‘FEDERATED’ is disabled.
/usr/sbin/mysqld: Table ‘mysql.plugin’ doesn’t exist問題。

[root@hadoop11 mysql]# more hadoop11.err
160714 14:51:30 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
160714 14:51:30 [Note] Plugin ‘FEDERATED‘ is disabled.
/usr/sbin/mysqld: Table ‘mysql.plugin‘ doesn‘t exist
160714 14:51:30 [ERROR] Can‘t open the mysql.plugin table. Please run mysql_upgrade to create it.
160714 14:51:30 InnoDB: The InnoDB memory heap is disabled
160714 14:51:30 InnoDB: Mutexes and rw_locks use GCC atomic builtins
160714 14:51:30 InnoDB: Compressed tables use zlib 1.2.3
160714 14:51:30 InnoDB: Using Linux native AIO
160714 14:51:30 InnoDB: Initializing buffer pool, size = 128.0M
160714 14:51:30 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file ./ibdata1 did not exist:

原因:
table ‘mysql.host’不存在的原因是因為新安裝的mysql服務後,一般需要執行數據庫初始化操作 ,從而生成與權限相關的表,執行命令如下:

/usr/bin/mysql_install_db --user=mysql

註:以上命令中的mysql_install_db與你安裝的mysql服務位置有關,如果不知道在哪,可以使用find / -name mysql_install_db找到其位置,然後執行上面的命令。

[root@hadoop11 mysql]# find / -name mysql_install_db
/usr/bin/mysql_install_db

-----------------------------------之前安裝mysql的步驟圖片---------------------------------------------

技術分享圖片

Plugin 'FEDERATED' is disabled. /usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist