douqiao3930 2019-03-10 10:57
浏览 146

Codeigniter迁移mysql到mysqli连接错误

Long time reader, first time poster,

I found this error pinging a webservice from my app after doing a migration to php 7.2 hosting environment from 5.6:

PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in …system/database/drivers/mysql/mysql_driver.php

After some research, this looked like a simple one line fix in codeigniter framework from: $db['default']['dbdriver'] = 'mysql'; to:

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

When I make a server request from the app after this change, my error log returns nothing but is still not loading in the app as before. I have read other posts on the topic suggesting I would need to make other mysql->mysqli changes, tried doing this in driver files also with no luck.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料