Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Database Codeigniter奇怪的数据库错误_Database_Codeigniter_Error Handling - Fatal编程技术网

Database Codeigniter奇怪的数据库错误

Database Codeigniter奇怪的数据库错误,database,codeigniter,error-handling,Database,Codeigniter,Error Handling,有一个错误需要刷新才能解决 有什么问题?(我已经将royalshoe设置为config/database) 错误: Unable to select the specified database: royalshoe Filename: C:\xampp\htdocs\royalshop\system\database\DB_driver.php Line Number: 140 如果您使用的是XAMPP,则首先需要运行SQL admin(以访问phpAdmin面板),然后始终创建一个数据

有一个错误需要刷新才能解决

有什么问题?(我已经将
royalshoe
设置为
config/database

错误:

Unable to select the specified database: royalshoe

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

Line Number: 140

如果您使用的是XAMPP,则首先需要运行SQL admin(以访问phpAdmin面板),然后始终创建一个数据库,然后从文件(您的数据库名.SQL)加载它。确保在phpAdmin中加载数据库时,必须先创建数据库


完成此操作后,请确保所有配置文件(如database.php和DB_driver.php)都已正确配置为正确的数据库名称。

是否已自动加载数据库并正确设置数据库设置。您的代码中也可能有错误,与db表不匹配,但不确定,因为需要查看错误来源的控制器/型号。查看此问题:我认为问题是由
xamp
引起的。请提供您的控制器和型号,以便我们帮助您