Penjelasan resmi pihak BCA perihal Klik BCA Versi Smartphone
August 9, 2010
GoDaddy – Creating / Registering NameServers
August 10, 2010
Penjelasan resmi pihak BCA perihal Klik BCA Versi Smartphone
August 9, 2010
GoDaddy – Creating / Registering NameServers
August 10, 2010

Table ‘mysql.servers’ doesn’t exist

I was dealing with an error while removing account / domain using plesk. Note the error received:

Error: Connection to the database server has failed:
Table ‘mysql.servers’ doesn’t exist

solution? follow following steps:
* Login to the server as root.
* Issue following command:

[root@myserver]# mysql_fix_privilege_tables –user=admin –password=y0urp4ssw0rd –verbose
This script updates all the mysql privilege tables to be usable by
the current version of MySQL

You can safely ignore all ‘Duplicate column’ and ‘Unknown column’ errors
because these just mean that your tables are already up to date.
This script is safe to run even if your tables are already up to date!

ERROR 1060 (42S21) at line 102: Duplicate column name ‘File_priv’
ERROR 1060 (42S21) at line 108: Duplicate column name ‘Grant_priv’
ERROR 1060 (42S21) at line 109: Duplicate column name ‘Grant_priv’
ERROR 1060 (42S21) at line 110: Duplicate column name ‘Grant_priv’
ERROR 1060 (42S21) at line 121: Duplicate column name ‘ssl_type’
ERROR 1061 (42000) at line 131: Duplicate key name ‘Grantor’
ERROR 1054 (42S22) at line 158: Unknown column ‘Type’ in ‘columns_priv’
ERROR 1060 (42S21) at line 180: Duplicate column name ‘type’
ERROR 1060 (42S21) at line 190: Duplicate column name ‘Show_db_priv’
ERROR 1060 (42S21) at line 207: Duplicate column name ‘max_questions’
ERROR 1060 (42S21) at line 217: Duplicate column name ‘Create_tmp_table_priv’
ERROR 1060 (42S21) at line 220: Duplicate column name ‘Create_tmp_table_priv’
ERROR 1060 (42S21) at line 345: Duplicate column name ‘Create_view_priv’
ERROR 1060 (42S21) at line 348: Duplicate column name ‘Create_view_priv’
ERROR 1060 (42S21) at line 351: Duplicate column name ‘Create_view_priv’
ERROR 1060 (42S21) at line 357: Duplicate column name ‘Show_view_priv’
ERROR 1060 (42S21) at line 360: Duplicate column name ‘Show_view_priv’
ERROR 1060 (42S21) at line 363: Duplicate column name ‘Show_view_priv’
ERROR 1060 (42S21) at line 380: Duplicate column name ‘Create_routine_priv’
ERROR 1060 (42S21) at line 383: Duplicate column name ‘Create_routine_priv’
ERROR 1060 (42S21) at line 386: Duplicate column name ‘Create_routine_priv’
ERROR 1060 (42S21) at line 392: Duplicate column name ‘Alter_routine_priv’
ERROR 1060 (42S21) at line 395: Duplicate column name ‘Alter_routine_priv’
ERROR 1060 (42S21) at line 398: Duplicate column name ‘Alter_routine_priv’
ERROR 1060 (42S21) at line 401: Duplicate column name ‘Execute_priv’
ERROR 1060 (42S21) at line 404: Duplicate column name ‘Execute_priv’
ERROR 1060 (42S21) at line 417: Duplicate column name ‘max_user_connections’
ERROR 1060 (42S21) at line 426: Duplicate column name ‘Create_user_priv’
ERROR 1060 (42S21) at line 448: Duplicate column name ‘Routine_type’
ERROR 1054 (42S22) at line 573: Unknown column ‘Event_priv’ in ‘where clause’
ERROR 1060 (42S21) at line 589: Duplicate column name ‘sql_mode’
ERROR 1060 (42S21) at line 628: Duplicate column name ‘originator’
ERROR 1060 (42S21) at line 632: Duplicate column name ‘time_zone’
ERROR 1060 (42S21) at line 635: Duplicate column name ‘character_set_client’
ERROR 1060 (42S21) at line 641: Duplicate column name ‘collation_connection’
ERROR 1060 (42S21) at line 647: Duplicate column name ‘db_collation’
ERROR 1060 (42S21) at line 653: Duplicate column name ‘body_utf8’
ERROR 1054 (42S22) at line 663: Unknown column ‘Trigger_priv’ in ‘where clause’
done
[root@myserver]#

That’s it! This error generally occurs while compiling Mysql to new version, apparently due to incomplete Mysql upgrade. You often need to run mysql_fix_privilige_tables command to ensure that the mysql database contains all the required contents.

Leave a Reply

Your email address will not be published. Required fields are marked *