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.
Popular Links
Looking for more information on Plesk? Search our Knowledge Base!
Interested in more articles about Control Panels? Navigate to our Categories page using the bar on the left or check out these popular articles:
- 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
Popular tags within this category include: cPanel, WHM, Plesk, DirectAdmin, and more.
Don’t see what you’re looking for? Use the search bar at the top to search our entire Knowledge Base.
The Hivelocity Difference
Seeking a better Dedicated Server solution? In the market for Private Cloud or Colocation services? Check out Hivelocity’s extensive list of products for great deals and offers.
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.
Unsure which of our services is best for your particular needs? Call or live chat with one of our sales agents today and see the difference Hivelocity can make for you.