kraada wrote:Okay, the key is you need to enable PostgreSQL to over the network, then you need to use your IP address on your local network instead.
Edit the pg_hba.conf file (located in /etc/postgresql/8.3/main) as explained in this tutorial.
You can find your local ip by running ifconfig at the command prompt it'll be listed as inet addr under your first ethernet card (by default, that'd be eth0 and the first thing listed). Most likely it'll be something like 192.168.1.100.
Put that in instead of "localhost" or "127.0.0.1" and it should connect fine. I think what's going on is that when you use localhost wine looks within the virtual windows image -- which of course isn't running the PostgreSQL server -- so you need to point PT3 at your IP address as if it's going over the network and then it'll work fine.
I was able to connect up to my own DB and see my stats, but I haven't tested importing or anything else -- I suspect they should work fine though.
I runned ifconfig and my local ip is 192.168.1.4
So I edited the pg_hba.conf adding "host all all 192.168.1.0/24 md5"
And I edited the postgresql.conf file adding "listen_addresses = '*'"
I restarted postgresql, then I tried with these settings:
Server 192.168.1.4
port:5432
database user: postgres
password: my pwd
but I've the same error... Did I do anything wrong?