SymptomsPHPMyAdmin returns the following error when you are trying to access a database:
Non-static method PMA_Config::isHttps() should not be called statically
CausePHPMyAdmin in Plesk accesses the database using this database user's credentials. If the user or password does not match the records in the "mysql" database, the error specified above occurs.
In order to check the user/password, you can try to establish a MySQL connection from the command line on the server, for example:
~# mysql -uDB_USER -pDB_PASSWORD -D DB_NAME
ERROR 1045 (28000): Access denied for user 'USERNAME'@'localhost' (using password: YES)
Such an error means that the database user cannot access the database because of an invalid password or insufficient permissions to connect this database.
You can reset the password and permissions for this user through the Plesk interface by updating the Domains -> DOMAIN -> Databases -> DB_NAME -> DB_USER page.
If the problem persists after the password reset, verify that the empty MySQL user does not exist and delete it if it does exist.
mysql> select Host, User from mysql.user where User='';
| Host | User |
| yourdomain.com | |
| localhost | |
2 rows in set (0.00 sec)
mysql> delete from mysql.user where User='';
Query OK, 2 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
As explained in MySQL manual at
A very common error is to insert a new entry with Host=% and User=some_user, thinking that this will allow you to specify the localhost to connect from the same machine. The reason that this does not work is that the default privileges include an entry with Host=localhost and User=''. Because that entry has a Host value, localhost, that is more specific than %, it is used in preference to the new entry when connecting from localhost. The correct procedure is to insert a second entry with Host=localhost and User=some_user, or to delete the entry with Host=localhost and User=''. After deleting the entry, remember to issue a FLUSH PRIVILEGES statement to reload the grant tables.