Vahid Najafi
Vahid Najafi

Reputation: 5243

Codeigniter strange database error

There is an error That solve with some refresh.

What is the problem? (I have already set royalshoe into config/database)

Error:

Unable to select the specified database: royalshoe

Filename: C:\xampp\htdocs\royalshop\system\database\DB_driver.php

Line Number: 140

Upvotes: 0

Views: 1433

Answers (1)

Ksenia
Ksenia

Reputation: 21

If you are using XAMPP you first need to run SQL admin (to access phpAdmin panel), then ALWAYS create a database and then load it from file (your database name.sql). Make sure you never load a database in phpAdmin without creating one first.

Once you've done that, make sure all config files (such as database.php and DB_driver.php) are configured correctly for the right database name.

Upvotes: 2

Related Questions