环境:centos7+php5.4.16+mariadb5.5.52

在centos7环境下安装PDO,安装的时候都是自己分开安装的,先装的PHP(httpd)后装的mariadb。

数据库安装完成后没有pdo支持,按照普通的module安装方法,来回折腾了好几天,国内反复百度都没有匹配的环境,各种编译出错。

终于在stackoverflow上找到了答案,直接使用yum install php-mysqlnd,然后/bin/systemctl restart httpd,phpinfo里面就有pdo扩展支持了。

 

原文地址如下:

http://stackoverflow.com/questions/20898711/what-pdo-driver-to-use-with-mariadb#comment31370098_20899881

相关文章:

  • 2021-09-01
  • 2022-12-23
  • 2021-12-13
  • 2021-04-01
  • 2021-04-15
  • 2021-10-09
  • 2021-05-29
猜你喜欢
  • 2021-12-13
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2021-12-13
  • 2021-03-31
  • 2021-04-05
相关资源
相似解决方案