重新安装了环境报错{"error":"could not find driver"}

前言:最近新工作开发oa系统,没有借助工具安装wamp环境,结果在测试项目时候出现了bug,找了很久,发现方向没有对

报错信息:

{"error":"could not find driver"}

解决方法:

1、原因是没有pdo扩展导致的,

2、解决办法:打开php.ini,然后去掉以下两行代码之前的分号(;)即可。如下;

extension=php_pdo_firebird.dll

extension=php_pdo_mysql.dll

猜你喜欢

转载自www.cnblogs.com/learningPHP-students2018/p/10408459.html