PostgreSql 'PDOException' with message 'could not find driver'

后端 未结 9 1858
悲&欢浪女
悲&欢浪女 2020-12-09 15:30

pdo is working fine with mysql but with pgsql its giving error \'PDOException\' with message \'could not find driver\' I\'ve installed php5-pgsql p

9条回答
  •  执笔经年
    2020-12-09 16:14

    Here is what I did to solve the problem.

    1. Edit php.ini and remove ; from extension=pdo_pgsql. Also, add extension=pgsql.so to the php.ini file.

    2. Make sure to restart the Apache server before you try to see the result.

提交回复
热议问题