PDO Exception could not find driver

pdo连接mysql数据库出错,如下所示: [attach]202[/attach]  
已邀请:

Ansible - 项目实施 系统工程师

这个问题应该是你的php没有加载pdo_mysql模块
查看是否加载了pdo_mysql模块
# php -m |grep -i pdo_mysql
安装pdo_mysql模块
# yum -y install php-mysql-5.3.3-40.el6_6.x86_64 (5.3版本的php)
or
# yum -y install php54w-mysql-5.4.44-1.w6.x86_64 (5.4版本的php)

要回复问题请先登录注册