MySQL_PHP学习笔记_2015_0907_PHP用pdo连接数据库时报错 could not find driver

环境: Windows, zend studio

错误信息: could not find driver

第一想到的办法还是百度……

下面是解决办法:

由于PHP默认的设置中, php_pdo_mysql模块是关闭的, 所以才会报could not find driver的错误; 把这个模块打开, 重启apache.

image

摘自互联网:pdo 连接数据库 报错 could not find driver 解决方法

原文地址:https://www.cnblogs.com/BigBigLiang/p/4790051.html