could not find driver

COS、CDN

运行报如下错误是因为docker安装的php-fpm是没有带pdo_mysql扩展的,需要自行安装

could not find driver

解决方法:

#进入myphp容器,安装扩展 docker exec -it myphp /bin/bash cd /usr/local/bin/ docker-php-ext-install pdo_mysql #退出myphp容器,重启容器 Ctrl+p+q docker restart myphp docker restart mynginx
COS、CDN
热门