connecting postgresql and codeigniter

后端 未结 5 1968
北恋
北恋 2021-01-02 17:47

I\'m new using postgresql and I\'ve been using Codeigniter for a year.

I have a small postgresql database and I wanna call it from Codeigniter.

In my databas

5条回答
  •  心在旅途
    2021-01-02 18:05

    Remove the 'dsn' string and change to 'dbdriver' => 'postgre' in the config array.

    Despite the CI docs stating the value should be 'postgres' if you check the directory and file names in system>database>drivers the folder is actually called 'postgre', the file name 'postgre_driver.php' and the class 'CI_DB_postgre_driver' so we can assume the docs are wrong here. Weird this hasnt raised its ugly head before

提交回复
热议问题