Article ID: 1869, created on May 23, 2007, last review on May 11, 2014

  • Applies to:
  • Plesk for Linux/Unix


PHPMyAdmin returns the following error when you are trying to access a database:

Non-static method PMA_Config::isHttps() should not be called statically


PHPMyAdmin 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:

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 |
|       |      |
| localhost            |      |
2 rows in set (0.00 sec)

mysql> delete from mysql.user where User='';
Query OK, 2 rows affected (0.00 sec)

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_userthinking 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.

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF