Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8326161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:40:48+00:00 2026-06-09T00:40:48+00:00

When I launch the website through local host, I get the following error: Database

  • 0

When I launch the website through local host, I get the following error:

Database Error: Unknown database ‘db_name’

I’m having a dig around as to what the problem is. The website belongs to a friend of mine and he wants me to connect the website to the database. The database resides within the root directory. I’m merely trying to connect to it.

In most of the PHP files, there is a tag that includes the config file which contains the details of the database.

Any ideas as to how I can get it working and resolve the Database Error: Unknown database ‘db_name’ error?

Any help is highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:40:50+00:00Added an answer on June 9, 2026 at 12:40 am

    Database should not reside in root directory, it should be imported to database (Mysql) server.

    Check in Mysql databases, does your database resides there?
    If not, you can do so by phpMyAdmin or navigating to your mysql and importing it.

    Create database in mysql and import the sql file as below by opening command-line terminal:

    /path/to/mysql/bin > mysql -u username -p < /path/to/root/db.sql

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm considering using the following code during a website launch phase to show users
I am getting ready to launch a website I designed in ASP.NET. The problem
I am getting this error when I try to launch my website using WebMatrix.
I have a website I want to launch through either Rackspace, EC2, Heroku or
I'm trying to launch a website url in a new tab using python in
I am about to launch my website and security is important so i wanted
i'm about to launch an advertisement campaign to promote my website, the thing is
Launch app from homescreen can't get remote push payload? But launch from Notification Center
Application launch through Java web start(JWS) checks for update when we are launching it.
I'm about to re-launch a corporate website which has the same link structure for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.