How to Find Your WordPress Database Name

If you’ve ever had the need to find the name of your WordPress database, then there’s an easy way to do that – simply look for it in your wp-config.php file located in the root folder of your WordPress install.

Accessing Your WP-Config.php File

If you are doing something where you need the name of your database, then I’m assuming you have access to your server.

Simply go to the main folder of your WordPress install and locate the file called wp-config.php.


Open that file by clicking “View” or “Edit” or however your system lets you see the file.

Once your file is open, near the top after some introductory information, you should be able to spot the database name pretty clearly. It should look something like this:

And that’s it.

Featured Plugin - WordPress Infinite SEO Plugin

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Comments (2)

    • Nah, I changed it for the screenshot. You had me scared there for a minute, thinking I forgot to. :) … It’s just a test site anyway. It gets wiped on a regular basis.