Lost wp-config file help

Asked by:
kkris / 5 Points
2013-02-28 1:37 am EST
Hi - I overwrote a wp-config.php file, and couldn't find my password. So I created a new user for the database, and used that info for the file. Instead of getting my blog back, I got a new, empty blog. Is there a way to recreate the config file?

To ask this user for more information, please first login.

To submit an answer, please login.



16,266 Points
2013-02-28 10:25 am EST
Hello kkris,

The config file only points to a database, it has nothing to do with what actually displays on the screen. That all comes from the database itself. The action you took, creating a new user, was a correct method of reconnecting a wp-config file to a database. That, or either deleting and recreating the original user. Either way, the results are the same.

I pulled the data out of the database for that installation and it only has the default information in that database. If there was any data there previously, it has been replaced with a default database.

I did note there were three other databases but confirmed they are all connected to the other three WordPress installations in your account.

Best Regards,
Scott M

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.