This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here

Skip to main content

Just Host Web Hosting Help

How To Find Your WordPress Database

This article explains how to find the database in use by a WordPress site. This information may be useful if you wish to access the database using a tool like phpMyAdmin.



Identifying the WordPress Database

To get the database information we need to access the files on the account and open the WordPress wp-config.php file which holds the database information.

Accessing the File Manager

  1. Log in to your Just Host cPanel account.
  2. Click on the Hosting on the top menu and then cPanel on the sub menu.
  3. Find the Files section and click on File Manager.
  4. You may get a popup asking you to select the directory you want to start in. Choose the Document Root for: option and select the website you want to get the database information for. Finally click go.

Opening the wp-config.php File.

  1. Once in the file manager, make sure you are in the folder for your WordPress site.
  2. In the list of files find the wp-config.php file.
  3. Right click on the file and select Code Edit.
  4. If you get a popup asking about the encoding of the file click the Edit button to continue.
  5. In the file editor find the line that says "define('DB_NAME', 'example_database');" This is usually around line 19. The database is the second term that is in single quotes. In the case of this example it is examplec_wo5647.

You can access the database using the database tools on the cPanel such as phpMyAdmin

Knowledgebase Article 331,492 views bookmark tags: database find wordpress


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

This article explains how to install WordPress when Mojo is unable to create the database automatically.
Knowledgebase Article 200,328 views tags: MOJO automatic database install wordpress

This article will explain how to change the Site URL or Home URL setting in WordPress. This may be useful if you have moved your WordPress site or are planning to move your WordPress site.
Knowledgebase Article 276,218 views tags: home site url wordpress wordpresstools

This article will explain how to login to a website created with WordPress.
Knowledgebase Article 644,430 views tags: access admin change dashboard edit login site wordpress

Related Help Content

This article explains how to deactivate, change or delete themes and plugins on a WordPress site without the dashboard.
Knowledgebase Article 295,423 views tags: access dashboard deactivate disable plugin plugins theme themes wordpress

We are offering free website migrations for qualifying WordPress websites within the first 30 days after signup. The offer includes the transfer of one WordPress website and the ability to review the site before it goes live.
Knowledgebase Article 94,036 views tags: detail migrate migration offer site website wordpress wp

How to manually migrate a WordPress site, not using ManageWP.
Knowledgebase Article 444,126 views tags: export import migrate wordpress

This article explains how to reset a lost WordPress password using phpMyAdmin.
Knowledgebase Article 204,753 views tags: password phpmyadmin wordpress

This article will explain how to login to a WordPress site using WordPress tools.
Knowledgebase Article 209,185 views tags: login wordpress wordpresstools

This article will explain why you see "Your WordPress site appears to be infected with malware. Please update to remedy this problem."
Knowledgebase Article 199,591 views tags: malware wordpress wordpresstools

How to change the name of your WordPress site without WP Tools
Knowledgebase Article 249,143 views tags: change domain update wordpress

This article will explain how to clean up meta data in a WordPress database.
Knowledgebase Article 135,110 views tags: wordpress

** Google ad credits are only available to customers in the United States, Canada, and the United Kingdom at this time.

¹ VAT (Value Added Tax) is not included in our advertised price and will be charged separately and itemized on invoices and billing information. Standard VAT rates based on EU Member State regulations may apply. Learn more.