报错 could not find php_pdo或者driver
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了报错 could not find php_pdo或者driver相关的知识,希望对你有一定的参考价值。
1.网站迁移或者php升级可能会出现下面的情况
缺少could not find php_pdo
解决办法 :升级php即可
yum remove php*
yum clean all
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.rpm epel-release-6.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install php56-fpm
yum install php56
测试 /usr/bin/php -v
/usr/sbin/php-fpm -v
PDOException
2.缺少 could not find driver
yum install php-devel -y
yum install php-mysqlnd
查看php支持的模块
php -m
测试网站是否恢复正常
以上是关于报错 could not find php_pdo或者driver的主要内容,如果未能解决你的问题,请参考以下文章
解决报错:IncompleteElementException: Could not find result map...
vscode 报错: could not find runtime 'node' in path
依赖ConstraintLayout报错,Could not find *****,Failed to resolve:*****
关于WARN Dispatcher:68 - Could not find action or result报错