Within your osCommerce application, you are able to handle most features and settings from within the admin dash panel. You may have occasion to change data directly from the database, most often when troubleshooting. Many accounts have multiple databases in them and guessing which database to use can cause disasterous results. Below is a quick guide to help you identify the exact database name your osCommerce program is using.

How to find your osCommerce database name

  1. To begin, log into your cPanel.
  2. Next, from the main cPanel screen, enter the File Manager section.
  3. Once you are in the File Manager, move through the folders to the root folder for your osCommerce store. If your main domain is the store, for example, you would navigate to the public_html folder. If you have the program running from a folder in your domain (example.com/store) then it would be under a folder with that name (public_html/store)
  4. Once you are in the root folder for your store, click on the includes folder.
  5. You will see many files here. Highlight the configure.php file and click on the Edit button.
  6. When the editor opens, you will see a lot of different settings. Find the line of code with the DB_DATABASE setting. This is the line of code with the database name at the end. For example, you will see a line of code like the one below:
    define('DB_DATABASE', 'userna5_osco111');

    The end of the line of code contains the database name> It has two parts, the first part (userna5) is the cpanel username, followed by the actual database naem (_osco111).
  7. Be sure to note the database name for later use. This now allows you to be able to locate the correct database when working with phpMyAdmin or other database management tools.
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. how to make new website with single account.
  2. Internal Server Error
  3. Add a note field to order page in Prestashop 1.5

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.