Depending on the method you use when you install WordPress, you may or may not have set a custom database name. And sometimes, particularly when working with developers, you’ll need to locate the name of your database.
Not to worry, we’ll cover how to do that in this Knowledgebase Article.
How To Find The Name Of Your WordPress Database
Step 1: Login to your cPanel. There’s a lot of ways to do this, but the sure fire easiest way is to login to your Client Area, then open your cPanel.
Step 2: In your cPanel, look for the Files section (at the top) and open the File Manager.
Step 3: Navigate to your public_html folder, then find the folder in which your WordPress site is installed. In this case, it’s installed in a folder called kb2 in my public_html folder.
Once you’re in the folder/directory in which WordPress is installed, you should see the listing of files that go along with a WordPress installation, like this:
Step 4: You want to open the file called
wp-config.php in the File Manager. To do this, select the wp-config.php file, then click Edit from the row of options at the top.
Step 5: After clicking Edit, a new window will open where you will see a lot of text. This is the configuration file for your WordPress site, so be sure not to make any changes. If you read through the file, look for this section:
// ** MySQL Settings - You can get this info from your web host ** //
On line 23 you will see the name of the database being used for your WordPress installation:
And that’s how you discover the name of the database running your WordPress site!