WordPress

How to Find WordPress Database Name

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 the file manager. Now access the folder where the WordPress application is located. Scroll to the wp-config.php file

File Manager WordPress

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

wp-config.php file locate database name

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' );

Suppose you’re on shared or cloud hosting and have 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 another FTP server using login credentials.

FTP access WordPress folder

Now locate the WordPress application folder and download the wp-config.php to get the database name.

Locate database files using the SSH terminal

Using this method, you can locate the database name in the online window. 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.

Ashok Sihmar

Ashok Kumar working in the Search Engine Optimization field since 2015. And worked on many successful projects since then. He shares the real-life experience of best SEO practices with his followers on seoneurons.com. You also can learn Advance level SEO for WordPress, Blogger, or any other blogging platform. Stay tuned.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button