您好!
去stackoverflow 上面 http://stackoverflow.com/questions/22533644/codeigniter-error-unable-to-connect-to-database-using-the-provided-settings
按照文中的方法 Go to system/database/mysql/mysql_driver and in db_connect method delete the @ from @mysql_connect($this->hostname, $this->username, $this->password, TRUE);
去掉了@符号之后 提示如下错误
A PHP Error was encounteredSeverity: 8192 Message: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead Filename: mysql/mysql_driver.php Line Number: 73 A PHP Error was encounteredSeverity: Warning Message: mysql_connect(): Filename: mysql/mysql_driver.php Line Number: 73 于是将默认数据库改成了 $db['default']['dbdriver'] = 'mysqli'; 以上的两个错误消失了,现在又回到了原点 A Database Error OccurredUnable to connect to your database server using the provided settings. Filename: D:\Program Files (x86)\xampp\htdocs\biocommunity\system\database\DB_driver.php Line Number: 124 这下是真 走投无路了。。。
|