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.
- How to Fix Invalid cPanel License Error When the IP is In Fact Licensed
- How to Increase PHP Upload Limit on a cPanel Server
- How to Add a Subdomain in Plesk 12
Don’t see what you’re looking for? Use the search bar at the top to search our entire Knowledge Base.
The Hivelocity Difference
With best-in-class customer service, affordable pricing, a wide-range of fully-customizable options, and a network like no other, Hivelocity is the hosting solution you’ve been waiting for.