You are reading this article to know the WordPress blog database 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 WordPress database name.
As I understand you are not a technical person because a developer will never read this article he can find the database name easily in code file wp-config.php.
Ways to know WordPress Blog Database Name
- Hosting Account cPanel (recommended and easy way)
- 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 hosting provider 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
Go to the File section and select File Manager
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:
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
In this code “Your_Blog_Database_Name” is the name of the WordPress blog database, Your blog database 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
- FTP User Name
- FTP User Password
- 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 database name
define('DB_NAME', ' Name_Your_Blog_Database ');
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.