用户
 找回密码
 入住 CI 中国社区
搜索
查看: 5104|回复: 1
收起左侧

[数据库] php5.5 mysql_pconnect()函数废弃

[复制链接]
发表于 2013-12-17 17:20:10 | 显示全部楼层 |阅读模式
mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead /home/data/www/hoomic-plugin/system/database/drivers/mysql/mysql_driver.php 91

这个地方有人去解决下么?
1,替换掉这个91行之后,又引出一些地方报错。有谁已经解决了,求个代码
PHP复制代码
                return @mysql_pconnect($this->hostname, $this->username, $this->password);
复制代码



PHP复制代码
                return @mysqli_connect("p:".$this->hostname, $this->username, $this->password);
复制代码

 楼主| 发表于 2013-12-17 18:07:33 | 显示全部楼层
好吧,,错了。已经提供mysqli的链接库。修改一下配置即可

$db['default']['dbdriver'] = 'mysqli';

本版积分规则