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

后端 未结 9 1867
悲&欢浪女
悲&欢浪女 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 15:53

    I had the same issue. First of all - check is it enabled in php.ini. Uncomment extension=php_pdo_pgsql...

    than set up extension directory!!

    extension_dir = "ext" ; for your case it could be other dir.
    

    and do not forget to restart server after changing the config.

提交回复
热议问题