after installing MySQL, the boot time did not start successfully, check the following log error as follows:---------------------------------------------
1 can: Initialize mysql:mysql_install_db
2 Directory permissions issue chown-r Mysql:mysql/var/lib/mysql
[email protected] local]# Less/var/log/mysqld.log
1. Check the error message as follows:
[ERROR] Fatal Error:can ' t open and Lock Privilege tables:table ' mysql.host ' doesn ' t exist
2, after access to information learned. To hit the following command to resolve:
Mysql_install_db–usrer=mysql Datadir=/var/lib/mysql
DataDir is my MySQL storage file directory
3. Then restart MySQL or not:
MySQL Daemon failed to start.
starting mysqld: [Failed]
4, and then tried the next separate command, start to complete
mysql_install_db
5. Start the MySQL service
[email protected] mysqld]#/etc/init.d/mysqld restart
Stop mysqld: [OK]
starting mysqld: [OK]
MySQL error fatal Error:can ' t open and Lock Privilege tables:table ' mysql.host ' doesn ' t exist