pdo postgres driver not found

Problems with the Windows version of XAMPP, questions, comments, and anything related.

pdo postgres driver not found

Postby besteasylamp » 08. May 2009 04:29

Dear friends,

Good day to all of you. I am new to this forum, although I have used XAMPP for close to 2 years.
Usually I google around for help, or I will do a search in apachefriends forum for related issue (I have tried to search for "pdo", "pdo postgres", "postgres", "pgsql", "pdo pgsql").
This time round, my searches end in vain - I have to start a new topic.
I must state that if this has been answered somewhere, will you point to the thread please?

The issue is simply, PDO Postgres driver not found. My phpinfo() listed the following:
PDO support | enabled
PDO drivers | mssql, mysql, sqlite2

pgsql
PostgreSQL Support | enabled
PostgreSQL(libpq) Version | 8.3.1
Multibyte character support | enabled
SSL support | enabled
Active Persistent Links | 0
Active Links | 0

Directive | Local Value | Master Value
pgsql.allow_persistent | On | On
pgsql.auto_reset_persistent | Off | Off
pgsql.ignore_notice | Off | Off
pgsql.log_notice | Off | Off
pgsql.max_links | Unlimited | Unlimited
pgsql.max_persistent | Unlimited | Unlimited
besteasylamp
 
Posts: 2
Joined: 08. May 2009 04:18

Re: pdo postgres driver not found

Postby Wiedmann » 08. May 2009 07:38

The issue is simply, PDO Postgres driver not found. My phpinfo() listed the following:
PDO support | enabled
PDO drivers | mssql, mysql, sqlite2

If the PDO Postgres driver is not enabled in php.ini, just do this.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: pdo postgres driver not found

Postby besteasylamp » 11. May 2009 02:55

Dear Wiedmann,

I thank you very much for your kind response.
As you can see in my 1st post, PDO driver is enabled and it supports mysql, mssql, mysqlite2. Seeing it, what should I set next?
besteasylamp
 
Posts: 2
Joined: 08. May 2009 04:18

Re: pdo postgres driver not found

Postby Wiedmann » 11. May 2009 07:00

As you can see in my 1st post, PDO driver is enabled

I can see, that the PDO-Extension is loaded.

and it supports mysql, mssql, mysqlite2

And the PDO drivers for mysql, mssql and sqlite2are enabled.

Well, you want work with PDO and Postgres, you must enable the "PDO Postgres driver" (in addition to the already loaded PDO-extension).

BTW:
In your first post, the pqsql-extension is also loaded. But this one have nothing to do with PDO, and if you want work with PDO, there is no need to enable this.

(There is also a chapter about installing the PDO extension in the PHP- manual...)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: pdo postgres driver not found

Postby rdwonline » 10. July 2011 08:06

Actually I am having this problem as well. In the past all I had to do was uncomment the lines for the native PostgreSQL driver and its PDO equivalent. I have restarted the server AFTER saving the correct php.ini file, and I have even restarted my computer. My XAMPP install still does not load the PostgreSQL drivers.

Has anyone been able to get this to work?

I'm using Windows 7 Ultimate SP1 with XAMPP 1.7.4 and now 1.7.5 beta
rdwonline
 
Posts: 10
Joined: 14. March 2009 20:48

Re: pdo postgres driver not found

Postby JonB » 10. July 2011 14:54

In the past all I had to do was uncomment the lines for the native PostgreSQL driver and its PDO equivalent.


"with what and when" was that the situation?

Anyway, Google is your friend:

http://notepad.patheticcockroach.com/62 ... n-windows/

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 69 guests