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.
Find the WordPress database Name using File Manager.
You can check the database name in the wp-config.php file. For this, log in to cPanel and visit file manager. Now access the folder where the WordPress application is located. Scroll to the 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 locate the database name.
In the above screenshot, the database name is ‘bitnami_wordpress’.
define( 'DB_NAME', 'bitnami_wordpress' );
If you’re on shared hosting or cloud hosting and no access to cPanel etc. You can use the FTP or SSH method to locate this file.
Database name in the wp-config.php file, using FTP.
Access your WordPress in FileZilla or other FTP server using login credentials.
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.