Giter Club home page Giter Club logo

Comments (5)

warcooft avatar warcooft commented on June 12, 2024 1

I try sample database connection for Postgre in Database file config and now worked, Thanks @kenjis

from codeigniter4.

kenjis avatar kenjis commented on June 12, 2024 1

Yes, now we have "Sample database connection for Postgre":

// /**
// * Sample database connection for Postgre.
// *
// * @var array<string, mixed>
// */
// public array $default = [
// 'DSN' => '',
// 'hostname' => 'localhost',
// 'username' => 'root',
// 'password' => 'root',
// 'database' => 'ci4',
// 'schema' => 'public',
// 'DBDriver' => 'Postgre',
// 'DBPrefix' => '',
// 'pConnect' => false,
// 'DBDebug' => true,
// 'charset' => 'utf8',
// 'swapPre' => '',
// 'failover' => [],
// 'port' => 5432,
// 'dateFormat' => [
// 'date' => 'Y-m-d',
// 'datetime' => 'Y-m-d H:i:s',
// 'time' => 'H:i:s',
// ],
// ];

from codeigniter4.

kenjis avatar kenjis commented on June 12, 2024

The values accepted by pg_connect's sslmode argument are: disable, allow, prefer, require
https://www.php.net/manual/ja/function.pg-connect.php#51767

https://www.postgresql.org/docs/8.4/libpq-connect.html#LIBPQ-CONNECT-SSLMODE

from codeigniter4.

kenjis avatar kenjis commented on June 12, 2024

I have applied the above configuration to the .env file in Codeigniter 4.4.8 and it works fine

Previously I tried to apply it in .env exactly with version 4.4.8 but it didn't work.

In v4.4.8, the configuration worked or not?

from codeigniter4.

warcooft avatar warcooft commented on June 12, 2024

I have applied the above configuration to the .env file in Codeigniter 4.4.8 and it works fine

Previously I tried to apply it in .env exactly with version 4.4.8 but it didn't work.

In v4.4.8, the configuration worked or not?

Worked

from codeigniter4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.