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

After installing Mysql today, an error occurred when opening:

 

1. Open the corresponding folder and view the error message:

 

2. Open the error message file and check the reason for the error: Plugin 'FEDERATED' is disabled. /usr/sbin/mysqld: Table 'mysql.plugin' doesn't exist

 

3. The reason why 'mysql.plugin' does not exist is that after the newly installed mysql service, it is generally necessary to perform database initialization operations to generate permission-related tables. The execution commands are as follows:

/usr/bin/mysql_install_db --user=mysql

 

4. If the execution is successful, the command just now is of course the best, if the following error is reported:

The solution is: install the autoconf library

yum -y install autoconf

 

5. Then execute the database open command, it will be successful! ! !

service mysql start

 

Tip: The database installation is best installed in usr/local/, because many things by default point to this folder.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324835432&siteId=291194637