• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Unable to connect to database

D

DamjanK

Guest
Hi i'm new here, i have plesk 9.0.0 on my linux dedicated server and today i had a more visits than normally but the server load was 1,77 max, now the forum don't open and when i try to login in my plesk control panel shows me te next error:
ERROR: PleskFatalException
Unable to connect to database: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'sending authentication information', system error: 32

0: /opt/psa/admin/plib/common_func.php3:108
psaerror(string 'Unable to connect to database: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'sending authentication information', system error: 32')
1: /opt/psa/admin/auto_prepend/auth.php3:93

Any solutions?
 
Hello,

Make sure that MySQL is running and you can access it from the command line:

# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa

If it works, try to increase maximum connection number for MySQL server. By default the number of simultaneous connections is limited to 100, if MySQL is highly used on your server, you need to increase this limit in /etc/my.cnf in section [mysqld]:

[mysqld]

set-variable=max_connections=200

Then restart MySQL.

# /etc/init.d/mysqld stop
# /etc/init.d/mysqld start
 
Back
Top