Problem adding a database user in plesk Or restarting mysql: Table mysql.servers doesn’t exist
December 9th, 2010Mysql Error with Plesk after updates on server, You may receive a “Table ‘mysql.servers’ doesn’t exist” error message while adding a database user in Plesk OR while restarting the Mysql service. The complete error message look like:
Error: Connection to the database server has failed:
Table ‘mysql.servers’ doesn’t exist
OR
Can’t open and lock privilege tables:
Table ‘mysql.servers’ doesn’t exist
Solution :
Step 1: SSH to your server
Step 2: Open mysql by typing:
mysql -u YOURUSERNAMEHERE -p
Make sure to put in your own username. When you hit enter, you’ll be asked for your mysql password.
Step 3: Use the mysql database:
USE mysql;
Step 4: Place this code in to create the table:
CREATE TABLE `servers` (
`Server_name` char(64) NOT NULL,
`Host` char(64) NOT NULL,
`Db` char(64) NOT NULL,
`Username` char(64) NOT NULL,
`Password` char(64) NOT NULL,
`Port` int(4) DEFAULT NULL,
`Socket` char(64) DEFAULT NULL,
`Wrapper` char(64) NOT NULL,
`Owner` char(64) NOT NULL,
PRIMARY KEY (`Server_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
COMMENT=’MySQL Foreign Servers table’;









