T
T
The_XXI2020-11-12 18:17:40
PostgreSQL
The_XXI, 2020-11-12 18:17:40

How to connect PostgreSQL to XAMPP on macos?

How to connect PostgreSQL to XAMPP on macos?

I uncommented the lines:
extension=php_pdo_pgsql.dll
extension=php_pgsql.dll

When trying to connect to the database, it gives an error:

Fatal error: Uncaught Error: Call to undefined function pg_connect() in /opt/lampp/htdocs/select.php:9 Stack trace: #0 {main} thrown in /opt/lampp/htdocs/select.php on line 9


How to fix this error?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question