9

I get an error when I try to connect to the Postgresql server with PHP, and I get an error like this one:

Unable to connect to PostgreSQL server: SCRAM authentication requires libpq version 10 or above in

I use EnterpriseDb, and is pg_connect(); in my code and I don't know what is wrong.

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
robby dwi hartanto
  • 425
  • 1
  • 4
  • 8

2 Answers2

2

--- windows 7 64 / postgresql 13 --- In my case: I did download libpq.dll from https://www.exefiles.com/en/dll/libpq-dll/ then i did replace old libpq.dll at php directory whit the latest downloaded and it did work !

1

I got that error when I enabled only one extension extension=php_pgsql.dll in php.ini, I tried again uncomment extension=php_pdo_pgsql.dll , and it's worked well for me

Dharman
  • 30,962
  • 25
  • 85
  • 135
robby dwi hartanto
  • 425
  • 1
  • 4
  • 8