Hi Marilou-
I’m sorry to hear about your website being down, and I’m glad to see that it’s back up and running now.
We have a detailed guide to troubleshooting the Error establishing a database connection issue, but generally speaking there are three main causes for this error:
- The database credentials in wp-config.php are incorrect
- The MySQL service is not running
- The database has been corrupted and is in need of repair
In any of these cases, your web hosting company should be able to assist you in getting back online, or you can use your hosting panel’s tools to investigate.