[ad_1]
I was using this tutorial [https://blog.hubspot.com/website/reset-wordpress](https://blog.hubspot.com/website/reset-wordpress) to try and reset my wordpress site by deleting the database. I got to the part about rerunning the wordpress installation script and I get an error that says “error establishing a database connection. Ugh what did I do wrong?
[ad_2]
You need to have a database + DB user/password setup with the name that’s used in your wp-config.php
If you deleted the database, the credentials that WP uses to access that database have likely changed as well. Update the wp-config.php file with the new database credentials.