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?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Help Center:
Email Address
Optional, but our team may contact you for more information.
Did you find this article helpful?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

News / Announcements

Update to SSL Certificates - Certificate Warnings
1969-12-31 11:00 am EST
Hits: 708

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!

Help 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.