ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")

May 31, 2018 139 views
MariaDB MySQL LAMP Stack Joomla
02e3307385a6f36485e6a4e753ed049f24afc9db
By:
mjbt

How to fix it qulickly? ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) | Mysql can't be started (start job failed to start error) | MySQL -Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

df -h
Filesystem Size Used Avail Use% Mounted on
udev 493M 12K 493M 1% /dev
tmpfs 100M 380K 100M 1% /run
/dev/vda1 25G 12G 13G 49% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
tmpfs 497M 0 497M 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/vda15 105M 3.2M 102M 4% /boot/efi
/dev/loop0 497M 8.0K 497M 1% /tmp

Be the first one to answer this question.