By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,346 Members | 2,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,346 IT Pros & Developers. It's quick & easy.

Can I connect to remote DB using psql?

P: 5
I've got a postgres db running on a windows mc. I've set it up to accept remote connections. Can I use psql from another machine (*nix) to connect to it?

I've tried this:
Expand|Select|Wrap|Line Numbers
  1. psql MYDB -U postgres -h 192.168.1.20 
but I get the error
Expand|Select|Wrap|Line Numbers
  1. missing or erroneous pg_hba.conf file
which I don't understand.

The pg_hba.conf file is a configuration file residing on the host, isn't it? Why is the client asking for it?
Nov 15 '07 #1
Share this Question
Share on Google+
1 Reply


P: 5
I've figured it out. The message was coming from the server (so successful connection made) but the server had a mis-configured conf file.
Nov 15 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.