Frequently Asked Questions
Plesk FAQ
What if Plesk installation fails?
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 psa installation mysql administrator must be 'root' without any password. Fix problem and try again.
Perform the following to fix the problem:
- Load MySQL with the 'skip-grant-tables' in /etc/my.cnf like below
[mysqld]
default-character-set=latin1
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
set-variable=max_connections=500
skip-grant-tables - Log on the MySQL server and set an empty password for root.
- Comment out or remove string 'skip-grant-tables' like below
[mysqld]
default-character-set=latin1
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
set-variable=max_connections=500
#skip-grant-tables - Then restart mysqld service with command
# /sbin/service mysqld restart
The upgrader will pass this stage successfully.
Note: this problem can also be solved by setting the password 'setup' for user admin.