Thinkphp5怎么连接Mariadb数据库?

浏览:1835 发布日期:2017/12/18 分类:ThinkPHP5专区 关键字: Mariadb
// 数据库类型
'type' => 'Mariadb',//Mariadb
// 服务器地址
'hostname' => '127.0.0.1',
// 数据库名
'database' => 'db_test',
// 用户名
'username' => 'root',
// 密码
'password' => '',
// 端口
'hostport' => '3307',
// 连接dsn
'dsn' => '',
// 数据库连接参数
'params' => [],



我这样连接,提示could not find driver
最佳答案
评论( 相关
后面还有条评论,点击查看>>