php7连接 sqlserver踩过的坑,could not find driver解决方式

时间:2018-06-22 17:53:20   收藏:0   阅读:1094

最近把环境升级为php7发现在连接sqlser的时候无法使用驱动了

页面错误

技术分享图片

后来查看文档发现:php7应该采用Server=xxxx;DataBase=xxxxx

解决方式:

DB_DSN_TWO           = dblib:host=*.*.*.*;dbname=mssqla
修改为:
DB_DSN_TWO           = sqlsrv:Server=*.*.*.*;Database=mssqla

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!