PHP PDO exception: could not find driver

前端 未结 3 1725
天涯浪人
天涯浪人 2020-12-19 09:07

Does the MySQL-server and PHP5-MySQLi version have to match in order for a connection to be possible? I\'m currently receiving the error below: I am running BSD. \"Fatal e

3条回答
  •  渐次进展
    2020-12-19 09:50

    I had this same issue on my CentOS install. I had tried to install imagick and hosed my install. When I removed all of my php files and reinstalled something wasn't working right.

    I ran:

    yum install php-pdo
    yum install php-pdo_mysql
    

    After doing those two lines I ran

    service httpd restart
    

    and everything came back up and running.

提交回复
热议问题