php - CodeIgniter 默认的数据库驱动是 mysql 而不是 mysqli

标签 php mysql codeigniter pdo mysqli

根据 php.net,mysql 已被弃用,应改用 mysqli。为什么“dbdriver”(在 application/config/database.php 中)默认设置为 mysql 而不是 mysqli 或更好的 PDO?

最佳答案

您始终可以将其更改为 mysqli,但在更改为 mysqli 之前,请在 php.ini 中启用 mysqli As described in this answer .

关于php - CodeIgniter 默认的数据库驱动是 mysql 而不是 mysqli,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26567695/

相关文章:

php - 用一个或多个空格或制表符分解字符串

javascript - 如何获取DELETE请求参数

mysql - 推进ORM : select criteria with "not in" condition

mysql - 在 where 子句中获取未知列

php - html按钮在表单上显示为输入框

php - 样式化动态内容

android - SQL with between in 2 columns 语句

php - 进行 URL 重写

php - 代码点火器: "Unable to load the requested class"

php - 检查mysql中是否存在表