According to my experience, this error happened because you filled wrong your username/password or database name in config.php file.Often for wordpress webhosting getting a mySQL database error like "Error establishing a database connection" and cannot access the website. What could be the reason for the error
You need change database details in wp-Config.php.