Attempts to manage a customer's MySQL databases produce errors:
Error: Connection to the database server has failed because of network problems: Try to establish connection failed
The MySQL server is marked in red on the Tools & Settings > Database Servers screen.
This problem may be caused by Plesk storing an incorrect MySQL server administrator password.
To solve the problem and reconnect Plesk with the MySQL server, follow these steps:
Stop the MySQL server (but not "Plesk SQL Server") from running on port 3306 using the Plesk Services Monitor tray utility.
Edit the MySQL configuration file,
%plesk_dir%\Databases\MySQL\Data\my.ini, and add the line
Start the MySQL server.
Log into MySQL without the password:
Change the password for the MySQL administrator:
UPDATE mysql.user SET Password = password('newpassword') WHERE User = 'admin';
skip-grant-tablesfrom the MySQL configuration file and restart the service.
- Log into the Plesk interface, go to the database server management settings (Tools & Settings > Database Servers), and change the password for the corresponding database server to the one set in Step 5. Plesk will re-establish the connection to the server.
For the same problem on a Linux server, please use this article