Resetting wordpress site gone wrong…

[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]
2 Comments
  1. You need to have a database + DB user/password setup with the name that’s used in your wp-config.php

  2. 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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer