After installing linux mysql error can not start Starting MySQL. ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).

After installing Mysql today, an error occurred open:

2, open the file error message, view the error cause is: Plugin 'FEDERATED' is disabled / usr / sbin / mysqld:. Table 'mysql.plugin' does not exist

 3, 'mysql.plugin' Cause is not present because the newly installed service mysql, generally need to perform database initialization operation, thereby generating the authority associated with the table, run the following command:

/usr/bin/mysql_install_db --user=mysql

4, if reported the following error:

The solution: install autoconf library

yum -y install autoconf

5, then perform

/usr/bin/mysql_install_db --user=mysql
6, open database command, you will be successful! ! !
service mysql start

 

Guess you like

Origin www.cnblogs.com/weibanggang/p/11230528.html