Solved

ODBC driver set up to connect to Postgres data base

Posted on 2000-05-17
1
958 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

Industry Leaders: 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

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

695 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