• 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

LeonardoD

New Pleskian
I Have this error:

ERROR: PleskFatalException

0: common_func.php3:146
psaerror(string 'Unable to connect to database: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)')
1: auth.php3:93


How i can fix ?

Configs:
Version Plesk: 9.5.2
Linux 2.6.26-2-xen-amd64
GenuineIntel, Intel(R) Xeon(R)CPU L5530 @ 2.40GHz
Debian 5.0.8 64bits
 
Make sure that you MySQL server is started with

# /etc/init.d/mysqld status
mysqld (pid 1822) is running...

Try to start it if it is stopped with
# /etc/init.d/mysqld start

If you have problems with starting try to investigate MySQL server log /var/log/mysqld.log
 
Make sure that you have enough free diskspace on disk partition where /var/lib/mysql directory located.
 
Check that you have enough inodes for this partition with

df -i
 
I have this:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/debian-root
50873172 50848376 0 100% /
tmpfs 522476 0 522476 0% /lib/init/rw
udev 10240 492 9748 5% /dev
tmpfs 522476 0 522476 0% /dev/shm
/dev/xvda1 233335 17927 202960 9% /boot
overflow 1024 0 1024 0% /tmp
tmpfs 522476 0 522476 0% /opt/psa/handlers/before-local
tmpfs 522476 0 522476 0% /opt/psa/handlers/before-queue
tmpfs 522476 0 522476 0% /opt/psa/handlers/before-remote
tmpfs 522476 784 521692 1% /opt/psa/handlers/info
tmpfs 522476 0 522476 0% /opt/psa/handlers/spool

you can help-me ?
 
df -h :


Filesystem Size Used Avail Use% Mounted on
/dev/mapper/debian-root
49G 49G 0 100% /
tmpfs 511M 0 511M 0% /lib/init/rw
udev 10M 492K 9.6M 5% /dev
tmpfs 511M 0 511M 0% /dev/shm
/dev/xvda1 228M 18M 199M 9% /boot
overflow 1.0M 0 1.0M 0% /tmp
tmpfs 511M 0 511M 0% /opt/psa/handlers/before-local
tmpfs 511M 0 511M 0% /opt/psa/handlers/before-queue
tmpfs 511M 0 511M 0% /opt/psa/handlers/before-remote
tmpfs 511M 784K 510M 1% /opt/psa/handlers/info
tmpfs 511M 0 511M 0% /opt/psa/handlers/spool
 
Remove some extra directories or files, buy and replace hard disk with more capacity...
 
Back
Top