日志报告里有个ERROR mysql_pconnect(): The mysql extension
本帖最后由 沦陷今生 于 2014-10-14 10:44 编辑ERROR - 2014-10-14 09:12:35 --> Severity: 8192--> mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead E:\baiduyun\mdc_web\nnjbw-15\system\database\drivers\mysql\mysql_driver.php 91
function db_pconnect()
{
if ($this->port != '')
{
$this->hostname .= ':'.$this->port;
}
return @mysql_pconnect($this->hostname, $this->username, $this->password);//这行
}
有这个记录用处理吗?这么处理才能让日志不再显示这条ERROR?
高版本的php会有这个提示 也不算错误,就是让你用PDO或者mysqli连接. 你查看下ci的mysql理解方式... 找合适的驱动就可以了 数据库配置一下 $db['default']['dbdriver'] = 'mysqli'; 数据库配置文件改成mysqli就没这个提示了
改成mysqli后CI自带数据备份就不可以用了 可以单独设置下
页:
[1]