This forum is no longer active. Please post your questions to our new community site

Forums WordPress

Over-written wp-config file

Subscribe to Over-written wp-config file 3 post(s), 2 voice(s)

Avatar ar_kirby 2 post(s)

I recently shot myself in the foot when I over-wrote my wp-config.php file as I was preparing to install a WP site I created locally onto a web server. Now I get a database error when I try to access my local site.

I went into wp-config.php and changed the settings back to what I thought were the correct ones; now I get the message that WordPress cannot select the database. How do I find the database name so I can get back into my local site?

I am running WordPress 3.1.2 on Windows 7 Ultimate.

Avatar ar_kirby 2 post(s)

Update: After doing some research, I was able to find the database name and re-entered the correct information into my wp-config.php file, and now when I try to open the site, I get this error message:

“This webpage has a redirect loop. The webpage at ”http://localhost:81/wordpress/wp-admin/install.php">http://localhost:81/wordpress/wp-admin/install.php has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Here are some suggestions:
Reload this web page later.
Learn more about this problem.
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

I’ve worked with the cookies and that did not seem to help. Any suggestions are welcome.

Avatar Beltrán Rueda Administrator 3,714 post(s)


Did you modify the Wordpress URL? Wordpress application saves the URL in the database so it is possilbe that you modify the domain or the port. Take a look at

Forums WordPress