Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Error:

Could not connect to the database to read the site configuration.