The connection to the MySQL server could not be established.

The error message of the MySQL server:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)