• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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