How to fix

Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’

When working with MySQL / MariaDB database you can catch a strange error: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) The same error in log files: [ERROR] Can’t start server : Bind on unix socket: No such file or directory [ERROR] Do you already have another mysqld server runningContinue Reading