• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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