WordPress site suddenly stopped working

The error message you’re getting tells you that your database settings aren’t working to create a connection. Did you change your wp-config.php? Check that first. Then check that the database server is running.

Error: Error establishing a database connection. This either means that the username and password information in your `wp-config.php` file is incorrect or we can’t contact the database server at `localhost`. This could mean your host’s database server is down.