• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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