Solved

ODBC driver set up to connect to Postgres data base

Posted on 2000-05-17
1
947 Views
Last Modified: 2012-08-13
Hi
 i am trying to connect a Pc application to a PostgreS data base on Linux, I've got ODBC driver to Postgres, but when I am doing my application using visual C there is a message:( No pg_hba.config entry for host ***.**.**.* user hola,database adios ). I think that the DSN spefication for the ODBS are not right, so
How can I set up the ODBC driver to connect to a Postgres data base in another machine.
thanks
0
Comment
Question by:abora
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
compinfo earned 30 total points
ID: 2942492
It sounds like you have to modify (edit) the pg_hba.conf file and uncomment (delete the '#' in front of the word 'host') (or add) the line:

host all 0.0.0.0 0.0.0.0 trust

after this, stop the postmaster and restar it.  (find the process id and kill using this command: KILL -HUP pid)

Does this help??
Compinfo

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes some very basic things about SQL Server filegroups.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question