InMotion Hosting Support Center

The vast majority of settings and features can be handled within the WordPress administation section. However, when troubleshooting or under extreme circumstances, you may need to work directly with the database. Most hosting accounts contain more than one database, so you will need to know exactly which database to work with. This article will demonstrate how to locate the database name your particular WordPress installation is working with.

How to locate 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 the File Manager, you will need to locate and move to the root folder for your WordPress installation. 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 (For example, if 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. Just past the code comments, around line 19, you will see the code for the database name. It appears like the example below:
    define('DB_NAME', 'userna5_wp123');
    The database name parameter is actually composed of two parts. In our example userna5_wp123, the first part is the cpanel username (userna5), and the second part is the actual database name (_wp123)
  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.
Continued Education in Course WordPress
You are viewing Section 27: 324: Finding your database name in WordPress
Section 26: 323: WordPress: "Briefly unavailable for scheduled maintenance"
Section 28: 325: How to create your own shortcodes in WordPress

Support Center Login

Social Media Login

   
Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Deleting correct database through cPanel
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-06-29 1:13 am

that is for server admin. wordpress admin cant see the database info like joomla ???

Staff
28,334 Points
2014-06-29 8:06 am
Hello edo,

I'm not sure what you are asking. Both Wordpress and Joomla have config files that list the database name in them. The database name is always in the same format (cpaneluser_dbname).

Kindest Regards,
Scott M
n/a Points
2014-07-22 4:06 am

User Login

I'm using core sms for mobile outside the wordpress directory which is in core php

I want to encrypt the password being sent into the database.

Database is storing password format like this $P$BCi4dUmFr/uKKR8qy0AaksO3Cv8Qun/

i'm using outside wordpress directory function md5(['user_pass']); it is storing format like '8b019af0a1de935cc5e76d804967d51a' after set of logins it is changes to $P$BCi4dUmFr/uKKR8qy0AaksO3Cv8Qun/ which format i need use.please help me.

Staff
11,186 Points
2014-07-22 11:04 am
Your passwords are stored in an md5 format so the way you are currently storing them is correct.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

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

5 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

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

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!