Your SMF database name was originally created during the programs installation. This information is usually not needed during routine work as the vast majority of settings and features can be handled within the SMF administation section. However, if you ever need to work directly with the database, particularly when troubleshooting, you will need to know the database name. As many hosting accounts contain more than one database, not knowing the exact database name can make things difficult. Below we will discuss how to locate the database name for your particular SMF installation.

Finding your database name in SMF 2.0

  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 SMF 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 Settings.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 different settings for your SMF program. Around line 30 you will see the code for the database name. It appears like the example below:
    $db_name = 'userna5_smf123';
    The database name is composed of two parts. In our example userna5_smf123, the first part is the cpanel username (userna5), and the second part is the actual database name (smf123)
  6. Write down your database name in a safe place so will be able to 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 this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

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!
Ask a Question

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.

0 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!