Report this

What is the reason for this report?

How to find DB_NAME, USER and PASSWORD

Posted on January 29, 2017

Hi,

I accidentally overwrite “wp-config” on my Wordpress installation with the “wp-config” of my local installation. I don’t have a backup of this “wp-config”… So my question is : how can I find the name of the database, the username and the password?

And what about the authentication Unique Keys and Salts?

Should I do a fresh installation of my wordpress?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

I would recommend logging into your MySQL instance and looking up for your database:

SHOW DATABASES;

If you have a descriptive name it would be easier for you to find the database.

Once you have your database name, you could either try to do the same for your user, or create a new user instead:

https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.