• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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