After upgrading or with a newly installed version of Plesk, you may find yourself unable to set passwords for new database users. If you are experiencing this or are not able to do any kind of activity with the database users, check the MySQL error log. If the log shows:
[ERROR] Can’t open and lock privilege tables: Table ‘mysql.servers’ doesn’t exist
then referring to these steps should resolve the issue:
- First, log in to MySQL with admin privileges
#mysql -uadmin -p`cat /etc/psa/.psa.shadow` -h localhost
- Go into your MySQL database:
mysql> use mysql;
- Next, you’ll need to create a server table:
mysql> 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’;
- With that, a ‘Server’ table will be created.
You should be able to operate the required database now.
Need More Personalized Help?
If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account -> Support and provide your server credentials within the encrypted field for the best possible security and support.
If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: firstname.lastname@example.org. We are also available to you through our phone and live chat system 24/7/365.