Database connection error!!!

A connection to the Database could not be established.
Please check your username, password, database name and host.
Also make sure config.php is rightly configured!

When connecting, the database returned:
Error 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)