While installing WordPress with the Sofataculous installer tool, a database name is automatically created. When performing tasks such as troubleshooting or moving the database, you may need to know the exact name of your Wordpress installation. This tutorial will demonstrate how to locate the database name for your WordPress installation in case you need to access it directly.

Finding your WordPress installation's database name

  1. First, you will need to log into your cPanel account.
  2. Next, you will need to open and enter the File Manager tool.
  3. From within the File Manager, you will need to navigate to the root folder for your WordPress installation. For example, if you are using your main domain, the root folder will be public_html. If you are using a domain name, then it will be under public_html/domainname (If, for instance, example.com is an addon domain, you will need to fin the public_html/example.com folder)
  4. Once in the root folder for your application, you will see many files. The find the wp-config.php file. Highlight the file and then click on the Edit button found in the toolbar across the top of the screen. A popup will appear on the screen, click the Edit button there as well.
  5. Once in the editor, you will see a lot of code regarding WordPress. Around line 19, you will see the code for the database name. It looks similar to the example code below:
    define('DB_NAME', 'userna5_wpres1');
    The database name parameter is composed of two parts. In our example userna5_wpres1, the first part is the cpanel username (userna5), and the second part is the actual database name (_wpres1)
  6. Write down your database name in a secure location so you can remember it when you need to access it using the phpMyAdmin tool.

 

Did you find this article helpful?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

The Community Support team wrote the article you're looking at now. We like to think it's perfect, but we're sure you have some suggestions. Please, let us know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Have a Question?

If you need some help, submit your question to our Community! We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)

Recent Questions

  1. Error in sending mails from my email account
  2. I can't connect to the server with filezilla
  3. Can't login to email

Support Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.