WordPress Blog Database Name

How to find the WordPress Blog Database Name?

You are reading this article to know the blog name means you are in trouble, Maybe you have a different reason don’t worry you are in the right place. It’s not difficult you can easily find your database name.

As I understand you are not a technical person because a developer will never read this article he can find the name easily in code file wp-config.php.

Ways to know WordPress Blog Name

  1. Hosting Account cPanel (recommended and easy way)
  2. FTP Client

Find DB Name By Hosting Account cPanel?

Most hosting providers allow you to manage the website through cPanel. You can found cPanel login details in the welcome email sent by at the time of purchase, don’t have cPanel login details contact your hosting provider support or developer created your blog.

Login to your hosting cPanel

cPanel Login

Go to the File section and select File Manager

cPanel File Section

In the old version of cPanel, you can see a popup to select the option to redirect where you can select the main root folder or your site name from the dropdown. In the new version, you will be redirected to the root directory by default.

If your domain is on root folder then it will show in the left panel otherwise you need to find under public_html folder. Select your domain name and you will see WordPress structure like below image:

cPanel File Manager

Select wp-config.php and then click on the “View” link in the top right side in the file manager. The wp-config file will open in a new tab to view, view the following code in the file

define('DB_NAME', 'Your_Blog_Database_Name');

In this code “Your_Blog_Database_Name” is the name of the WordPress blog database, Your blog name will be different we used the “Your_Blog_Database_Name” only for example.

Find DB Name By FTP Client

It’s a little difficult way to use only for view purposes but very useful for developers to connect with the web servers and upload and download data files on the server.

To connect by FTP client to the server you should have FTP login details if you don’t have then you need to create an FTP user, read our article for more details “How to create FTP account guide?“.

Popular FTP Clients

  • Filezilla (for Windows)
  • CoreFTP (for Windows)
  • Cyberduck (for Mac)

You need following details to connect with an FTP client

  • Host
  • FTP User Name
  • FTP User Password
  • Port
  • Connect with your FTP Client which you are using.
  • You will see two panels Local and Remote.
  • In the right-side Remote panel, you will see a list of files and folders.
  • Find your domain name in the root OR public_html folder.
  • Select domain and press enter now all files under your domain will open.
  • Find the wp-config.php file and after select the press right mouse button.
  • You will see the options menu, select the “View/Edit” option.
  • Now the file will open in text editor installed on your computer.
  • Find the below code to know the name
define('DB_NAME', ' Name_Your_Blog_Database ');

Name_Your_Blog_” is the name of the WordPress blog database, Your blog name will be different we used the “Name_Your_Blog_Database” only for example purpose.

We strongly recommended do not make any change in the wp-config.php file if you don’t know what you are doing, A change can break your site. If change is required then download a backup of the file before making any change or higher a developer.