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!

MySQL encountered the following error: Connection refused(errno = 2002)