Use PHP to connect PostgreSQL, Call to undefined function pg_connect();
‘PDOException’ with message ‘could not find driver’ with message ‘could not find driver’
Testing environment:
First, the extension=php_pdo_pgsql.dll and extension=php_pgsql.dll extensions are on, but not working.
Then, add \PostgreSQL\bin to the environment variable, which still doesn’t work.
Then, putting \PostgreSQL\bin\libpq.dll into System32 has no effect.
Finally, change
‘PDOException’ with message ‘could not find driver’ with message ‘could not find driver’
Testing environment:
First, the extension=php_pdo_pgsql.dll and extension=php_pgsql.dll extensions are on, but not working.
Then, add \PostgreSQL\bin to the environment variable, which still doesn’t work.
Then, putting \PostgreSQL\bin\libpq.dll into System32 has no effect.
Finally, change
libpq.dll
from \ PHP \php5.*\
into \apache*\bin to solve the problem.
Read More:
- PHP connection to MySQL database error: call to undefined function MySQL_ connect()
- Call to undefined function oci_ Connect() problem solving
- PHP error: call to undefined function curl_ init() window
- Call to undefined function mysql_ Connect() solution summary
- Fatal error: Uncaught Error: Call to undefined function mysql_connect()
- Fatal error: Uncaught Error: Call to undefined function mysql_ Connect() problem solving
- Uncaught error: call to undefined function MySQL when building sqli lab environment with phpstudy_ Connect() error
- pg_ctl: no database directory specified and environment variable PGDATA unset , centos 7 postgreSQL
- PHP Fatal error: Call to a member function query() on a non-object in
- Uncaught Error: Call to undefined function mysql_select_db()
- postgresql FATAL:no pg_hba.conf entry for host “192….“
- php mysqli_ connect_ Error () and mysqli_ connect_ The difference of errno() function
- Pg_dump Error: pg_dump: No matching tables were found,pg_dump: schema with OID 1515227 does not exi
- PHP under linux uses pdo-dblib to connect to mssql to report an error solution. Error message: SQLSTATE[01002] Adaptive Server connection failed (severity 9)
- bug-JAVA call SAP function Connect to SAP gateway failed
- TypeError: connection.connect is not a function
- Using Navicat + premium + 11.1 to connect to PG12 version, error: column c.relhasoids does not exist
- Pyspark36830;- 25509;- Postgresql38169; java.lang.ClassNotFoundException: org.postgresql.Driver
- Failed to connect to remote VM. Connection reused. Connection reused: Connect
- Three solutions to the appearance of notice: undefined index in PHP