Skip to content

Instantly share code, notes, and snippets.

@Justryuz
Created January 2, 2024 01:25
Show Gist options
  • Save Justryuz/6a4deef0ed2246efe16c1ad7050032fe to your computer and use it in GitHub Desktop.
Save Justryuz/6a4deef0ed2246efe16c1ad7050032fe to your computer and use it in GitHub Desktop.
server closed the connection unexpectedly codeigniter 4
CodeIgniter\Database\Exceptions\DatabaseException
Unable to connect to the database.
Main connection [postgre]: pg_connect(): Unable to connect to PostgreSQL server: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
https://pasteboard.co/0Knh3LW7prvJ.png
Server conflict with main db
configuration for test db
try change 127.0.0.1 to localhost for
before;>
https://pasteboard.co/yg6u0X4iTHq9.png
after;>
https://pasteboard.co/UX4RdZ3udQNI.png
TQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment