当前位置: 代码迷 >> 综合 >> [Illuminate\Database\QueryException] could not find driver 阿星小栈
  详细解决方案

[Illuminate\Database\QueryException] could not find driver 阿星小栈

热度:82   发布时间:2024-01-25 14:02:07.0

环境:centos8

报错是因为缺少mysql扩展

解决办法:

yum install php-mysql
yum install mysql-devel 

若为PHP5.3  就只能源码安装,参考如下

进入源码解压包

./configure --with-php-config=/usr/local/php53/bin/php-config --with-mysql 
./configure --with-php-config=/usr/local/php53/bin/php-config --with-mysql=/usr
./configure --with-php-config=/usr/local/php53/bin/php-config --with-mysql=mysqlnd

 

  相关解决方案