When I start mysql db , it pops the below error .
Code:
/usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
then I tried to mysql_upgrade it , but got the following errors.
Code:
mysql_upgrade -uroot -p --force
Enter password:
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
When I run mysql_upgrade , I found that them mysql.plugin is exist and upgraded.
mysql_upgrade -uroot -p --force
Code:
"
mysql.ndb_binlog_index OK
mysql.plugin OK
mysql.proc OK
"
It is strange that I sure the plugin db is exist , would advise what is the problem and how to fix it ? thanks