PHP PDO exception: could not find driver

前端 未结 3 1703
天涯浪人
天涯浪人 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 10:02

    PDO uses database specific drivers to connect to database systems. It looks like you are missing the pdo_mysql driver that is required to connect to a MySQL database. There is some details on installing the driver on the pdo_mysql manual page, or there may be a BSD package that you can use (I am afraid I'm not familiar enough with BSD to offer specific advice).

提交回复
热议问题