Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configuring PostgreSQL with unxODBC
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3657

PostPosted: Mon Dec 23, 2024 6:16 am    Post subject: Configuring PostgreSQL with unxODBC Reply with quote

Hi,
I did successfully install PostgreSQL ODBC on top of unixOODBC DM.

My configuratioon is as follows:

Code:

IgorsGentoo /home/igor/dbhandler_new/Debug # cat /etc/unixODBC/odbcinst.ini
[PostgreSQL]
Description=PostgreSQL drver
Driver=/usr/lib64/psqlodbcw.so

IgorsGentoo /home/igor/dbhandler_new/Debug # cat /etc/unixODBC/odbc.ini
[Postgres Test]
Driver=PostgreSQL
Server=localhost
PORT=3306
DATABASE=draft
OOPTION=3
USER=postgres
PASSWORD=********


Trying to connect I'm getting:

Code:

IgorsGentoo /home/igor/dbhandler_new/Debug # isql -v postgres
[IM002][unixODBC][Driver Manager]Data source name not found and no default driver specified
[ISQL]ERROR: Could not SQLConnect


Thank you.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2522

PostPosted: Mon Dec 23, 2024 10:22 am    Post subject: Reply with quote

At a first glance, the default port is 5432.

Also there's psql cli client, you don't need odbc for that.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum