Home Blogging Tips How to Find Your WordPress Database Name

How to Find Your WordPress Database Name

0
19
Recommended WordPress Hosting

I’ve many time seen that people asked that, How to find my WordPress database name? So here is the solution that I discover for you to easily finding the name of your database in WordPress.

Simply look for it in your wp-config.php file which is located in the root folder, where you install your WordPress.

Almost all the major settings and features can be handled within the WordPress admin panel. However something like troubleshooting, managing databases, you’ll go to your hosting server where you host your WP site.

WordPress Database: How to Find Database Name in WordPress

Although different methods used by different people, but here is the short, sweet and simple solution to locate your WordPress installation’s database name.

If you’re doing something development related where you need the name of your database, then obviously you’ve the access to your server.

Although you’ve your own VPS hosting, or any hosting provider like iPage, Bluehost, inmotionhosting, Hostgator etc, the process almost same.

Step 1 – Log in to your hosting account (cPanel).

Step 2 – Go to File Manager (Where you installed WordPress).

Step 3 – In File Manager, you’ll need to locate the root folder for your WordPress installation. If you installed it on your main domain name, the root folder will be public_html.

If you’re installed it on sub-directory, then go their, (for example, example.com or example.com/wordpress etc).

Step 4 – Once you find the root folder for your website, you’ll see many files. The find the wp-config.php file. Simply click on edit button to found in the toolbar across the top of the screen.

A popup window will appear on the screen, click the Edit button there as well.

how to find wordpress database name

Step 5 – So when you reach in the editor, you will see a lot of code regarding WordPress. Almost on the top after some introductory information “define(‘DB_NAME’, ‘example_database’); you should be able to spot the database name pretty clearly.

It should look something like this:

wordpress-configuration-files1

And that’s it. I hope you’ll be find this information useful and it solving your problem. If you’ve any issue regarding this, then comment below and I’ll solve it as soon as possible.

Load More Related Articles
Load More By Aamir Saleem Ansari
Load More In Blogging Tips

Leave a Reply

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