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:
- Set the empty password for MySQL 'root' user:
# mysql -uroot -Dmysql -e 'update user set password="" where user="root"'
Comment out or remove string 'skip-grant-tables' in /etc/my.cnf and restart MySQL.
Try to install Plesk again.
Also check the article about Plesk admin password recovery.