Mysql Error with Plesk after updates on VPS server

- Fedora -

SOOOO my continuing effort to upgrade my VPS server has lead me to a new error. This time in Plesk:

“Table ‘mysql.servers’ doesn’t exist”

I’m sure it has something to do with me upgrading mysql in my last post. It was an easy fix and here it is:

Google brought me to: http://forums.mysql.com/read.php?11,142598,188705#msg-188705

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';

I hope that helps someone out there!

Author:  Crimm

Software engineer (PHP, Bat, VBS), Sr. Systems Admin, Techie, Father, Gamer, Anime watcher (Wannabe Otaku), & full of geek!

  • http://www.impactmediagroup.co.uk Impact Media

    Great fix, worked for us. Same thing happened after an update on one of our dedicated servers. Created the table and can now add user. Funny thing is plesk does not use this table to place the user in once added. :razz:

  • http://shiftcreate.com Adam J

    Thanks buddy – fix worked for me as well. I think the last mysql update has a few minor compatibility issues.

  • http://www.ericgillette.com Eric Gillette

    Yeah, I had the same issue, and this fix worked.

    I’m thinking about writing up a little shell script for it, since I have to deploy this across multiple servers. :idea:

  • http://wpguru.co.uk Jay Versluis

    You’re the man!

    This worked great on my dedicated machine – thank you so much!

  • Stuart

    The problem with this is that any db user that was created pre this table cannot connect to phpMyAdmin after it’s added.

  • Mitchell

    Works for me also! thanks!

  • http://reflexiv.net Rob

    Thanks for sharing, got this too. Must be some bug or something. Plesk scks..

    I know strange issues are the norm, nothing ever runs perfectly but it seems like Plesk has an abnormally high amount of them.

    At least with cPanel they have a lot of scripts to repair/rebuild critical configurations.

  • Graham Nichols

    MANY thanks for posting that it helped me out of a hole.

  • egfil

    Thand you for your help…. It works.

  • egfil

    Thand you for your help…. It works.