• 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: PleskFatalException Unable to connect to database: mysql_connect()Plesk 11.0.9

NewbieUser

New Pleskian
Hi Everyone,

I am On a Centos server with (actually) plesk 11.0.9 (succesfully installed last month) but i dunno why, i cant connect now the error is :

ERROR: PleskFatalException
Unable to connect to database: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: No such file or directory

0: common_func.php3:153
psaerror(string 'Unable to connect to database: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: No such file or directory')
1: auth.php3:116

This is a mysql problem.

I Connected (btw sorry for my bad english) by ssh, mysql haven't started....

some commands :

# locate mysql.sock
/var/lib/mysql/mysql.sock
# mysql start
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
#

I think plesk tried to upgrade to a new version and something goes bad, (the only living thing on this server is plesk, the others data are for real simple html websites)

I checked many forums, and no chance to fix it.

I have some questions :

Logically i have to reinstall mysql , but how to do it ? and of curse without loosing existing databases.

If it doesn't fix my problem , how can i re install plesk without loosing all the data.

If it doesn't fix, i have to reinstall server, but this is th eworse case :(

Any help will be kind

regards All

---- Nota Bene ------

I dont think that i have hard disk space problem

Filesystem Size Used Avail Use% Mounted on
rootfs 20G 3.2G 16G 17% /
/dev/root 20G 3.2G 16G 17% /
none 991M 216K 991M 1% /dev
/dev/sda2 911G 81G 785G 10% /var
tmpfs 992M 0 992M 0% /dev/shm
/dev/root 20G 3.2G 16G 17% /var/named/chroot/etc/named
/dev/sda2 911G 81G 785G 10% /var/named/chroot/var/named
/dev/root 20G 3.2G 16G 17% /var/named/chroot/etc/named.rfc1912.
zones
/dev/root 20G 3.2G 16G 17% /var/named/chroot/etc/rndc.key
/dev/root 20G 3.2G 16G 17% /var/named/chroot/usr/lib64/bind
/dev/root 20G 3.2G 16G 17% /var/named/chroot/etc/named.iscdlv.k
ey
/dev/root 20G 3.2G 16G 17% /var/named/chroot/etc/named.root.key
 
Last edited:
Back
Top