• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

ERROR: PleskDBException: Unable to connect to database

daanse

Regular Pleskian
Hi,
have that same stupid Error again and again.

In the Morning (always at 6:30 am) Plesk / Mysql goes down with following Error:
"ERROR: PleskDBException: Unable to connect to database: mysql_connect(): No such file or directory (Error code: 2002) (Abstract.php:69)"

What can i do?
And if i want to fix that Problem (restart Mysql, fresh install mysql) i can't get that Server running again.
Still shows me "ERROR: PleskDBException: Unable to connect to database: mysql_connect(): No such file or directory (Error code: 2002) (Abstract.php:69)"

Any Suggestions?

btw: this file /etc/my.cnf doesn't exist.
Debian 7.9 & 8.2.

Thank you.
 
hm don't looks like that Error i've mentioned. The Server is new without much customers.
Also i your Link theres Versions "Plesk 12.0" but i have 12.5
and its all sites & Plesk which isn't accessible hm.

This Solution didn't helped. Sorry.
Any Ideas?
 
Hi Daka Media KG,

try to repair your database with:

plesk repair db
... and post possible issues from the command line and/or from the repair - log.
 
Back
Top