could not find driver

wdzsjl 1个月前 (10-10) 阅读数 11 #HTML

运行报如下错误是因为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
wx.jpg ywfw.jpg
热门