Article ID: 228, created on Oct 6, 2008, last review on Jun 17, 2016

  • Applies to:
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 11.5 for Windows


Plesk installation fails with the error:

 Trying to connect with admin:setup account... ERROR 1045: Access denied for user: 'admin@localhost' (Using password: YES)
 not connected
 Trying to connect as root with empty password... ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
 not connected Cannot connect to mysql database.


Normally for Plesk installation, MySQL administrator must be 'root' user with the empty password. If you know current 'root' MySQL password, please login with it and continue with the query from the step 2. If you do not know the password, begin from the step 1:

1.Add the 'skip-grant-tables' option into /etc/my.cnf (for Debian-like systems the file is /etc/mysql/my.cnf) in '[mysqld]' section and restart MySQL:

  1. Set the empty password for MySQL 'root' user: # mysql -uroot -Dmysql -e 'update user set password="" where user="root"'
  2. Comment out or remove string 'skip-grant-tables' in /etc/my.cnf and restart MySQL.

  3. Try to install Plesk again.

    Also check the article about Plesk admin password recovery.

Search Words


Upgrade failed access denied to root@localhost

Error: Connection to the database server has failed because the supplied account does not possess administrative privileges: Access denied for user 'root'@'localhost' (using password: YES)

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 29d1e90fd304f01e6420fbe60f66f838 85a92ca67f2200d36506862eaa6ed6b8 46a8e394d6fa13134808921036a34da8 bd7fc88cf1b01f097749ae6f87272128 01bc4c8cf5b7f01f815a7ada004154a2 0a53c5a9ca65a74d37ef5c5eaeb55d7f ed7be2b984f9c27de1d2dc349dc19c6d a766cea0c28e23e978fa78ef81918ab8

Email subscription for changes to this article
Save as PDF