Articles on: Technical

How to Find Your WordPress Database Name?

Introduction:



The WordPress database contains all the essential data for your website, including posts, pages, settings, and user information. Knowing the database name is important for various tasks like troubleshooting, migrations, or making direct changes to the database. This knowledge base article will guide you through the process of finding your WordPress database name using two different methods.

Method 1: Using the wp-config.php File



Login to your cPanel.
Scroll down to the Files section and click on the File Manager.

File Manager

Go to your domain path where the website has been located and navigate to wp-config.php file. The location of wp-config.php entirely depends on where you have installed WordPress. However, for the main domain, the installation path is typically /public_html/wp-config.php.

wp-config.php

Right-click on the file and choose the "View" or "Edit" option to open it in a text editor.

Within the wp-config.php file, navigate to the value called DB_NAME.

DB_NAME

If you can’t find the value or want to locate it faster, you may use the Ctrl+F combination on Windows or CMD+F on Mac. Similarly, you can check other database details there as well by looking up the DB_HOST, DB_USER, or DB_PASSWORD values since they all represent your WordPress database details.

Method 2: From cPanel using WordPress Manager by Softaculous:



Login to cPanel.
Scroll down to the Software section and click on the WordPress Manager by Softaculous.

WordPress Manager

Click on the Up to date option for which website you wish to know the database details.

Up to date

Scroll down and click on Database Details to find the database name.

Database Details

Updated on: 23/11/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!