PHP PDO exception: could not find driver

前端 未结 3 1716
天涯浪人
天涯浪人 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:46

    Thanks to zerkms and John C for pointing me in the right direction. Below are the commands I used to install the driver:

    #cd /usr/ports/databases/php5-pdo_mysql
    #make install clean
    #apachectl restart
    

提交回复
热议问题