Mysql error mysql.servers doesn't exist when running flush privileges command

From thelinuxwiki
Jump to: navigation, search

error:

 mysql> flush privileges;
 ERROR 1146 (42S02): Table 'mysql.servers' doesn't exist

solution:

 # mysql_upgrade -u root -p
 ...
 ... some output excluded
 ...
 Running 'mysql_fix_privilege_tables'...
 OK