How To Find Your WordPress Database | Bluehost Support
  1. bluehost knowledge base

How To Find Your WordPress Database

This article explains how to find the database in use by a WordPress site. This information may be useful if you wish to access the database using a tool like phpMyAdmin.

Identifying the WordPress Database

To get the database information we need to access the files on the account and open the WordPress wp-config.php file which holds the database information.

Accessing the File Manager

Note: The Advanced tab will load your cPanel. Legacy accounts will feature a horizontal navigation bar at the top of the screen, while Bluerock account users will see a vertical navigation menu on the left-hand side of the screen. To learn more, please see Bluerock vs. Legacy.


  1. Log in to your Bluehost cPanel account.
  2. Click on the Advanced tab from the side navigation menu to the left.
  3. Under the Files section, click on File Manager.
  4. Look for the website file you want to get the database information for.


  1. Log in to your Bluehost cPanel account.
  2. Click on the Hosting on the top menu and then cPanel on the submenu.
  3. Find the Files section and click on File Manager.
  4. You may get a popup asking you to select the directory you want to start in. Choose the Document Root for option and select the website you want to get the database information for. Finally, click go.

Opening the wp-config.php File

  1. Once in the file manager, make sure you are in the folder for your WordPress site.
  2. In the list of files find the wp-config.php file.
  3. Right-click on the file and select the Edit option.
  4. If you get a popup asking about the encoding of the file, click the Edit button to continue.
  5. In the file editor find the line that says "define('DB_NAME', 'example_database');" This is usually around line 19. The database is the second term that is in single quotes. In the case of this example, it is examplec_wo5647.

Tip: You can access the database using the database tools on the cPanel such as phpMyAdmin

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.