I am using cakephp 2.0 and a wamp server. I have enabled the pdo of postgres in the php and i tried connecting to Postgres. However it still says that there is an error. My logi
I have found the answer for my problem This guy is very useful
http://tutology.net/category/mysql/install-postgresql-and-phppgadmin-windows-wamp
Basically i Copied libpq.dll from wamp\bin\php\phpX.X.X to wamp\bin\apache\ApacheX.X.XX\bin
A shot in the dark: Is the name of the database Test
or test
? Unquoted identifiers are cast to lower case in PostgreSQL. The manual about that.
Next shot in the dark: You are connecting to localhost
. This is not a local connection via Unix domain socket. For this to work the database must be set up to listen to TCP/IP connections. So you need in your postgresql.conf
:
listen_addresses = '*'
.. and restart.
Also, your pg_hba.conf
settings need to allow the connection. Could be a problem similar to this one.
Start by reading the chapter Connection Settings in the fine manual.
But I am done guessing now. You need to provide the error message.