How to Find WordPress Database Name 2021
It is essential to know the WordPress database name before performing backend tasks. This article will discuss where we can find database names using File Manager, SSH, or the FTP method.
Page Contents
Find the WordPress database Name using File Manager.
You can check the database name in the wp-config.php file. For this, login to cPanal and visit file manager. Now access the folder where the wordpress application is located. Scroll to wp-config.php file

In the wp-config.php file, you can check the database name of your website. Let’s see how to locate it.

In this file, WordPress declares the database name used by it. You’ve to search the term ‘DB_NAME,’ and the database name can be located.
In the above screenshot, database name is ‘bitnami_wordpress’.
define( 'DB_NAME', 'bitnami_wordpress' );
If you’re on shared hosting or cloud hosting and no access of cPanel etc. You can use the FTP or SSH method to locate this file.
Located wp-config.php using FTP.
Access your wordpress in filezilla or other FTP server using login creditinals.

Now locate the WordPress application folder and download the wp-config.php to get the database name.
Locate database file using SSH terminal
Using this method, you can locate the database name in the online window itself. Execute the following command.
sudo nano /path/directory/wordpress/wp-config.php
Using this method, you must be aware of the path where WordPress is installed. If you’re a Bitnami WordPress user, then the command will be:
sudo nano /opt/bitnami/apps/wordpress/htdocs/wp-config.php
You can try any of the above methods to check the name of the WordPress database.
I hope you liked our article, in case of any doubt or query. Feel free to ask in the comment section provided below. Thank You.