SYMPTOMS
Full error message looks like:ERROR: Unable to connect to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) 0: /usr/local/psa/admin/auto_prepend/auth.php3:67 psaerror(string "Unable to connect to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11)")
CAUSE
Error code 11 means:# perror 11
Error code 11: Resource temporarily unavailable RESOLUTION
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.