Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Configuring PostgreSQL with unxODBC

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

Configuring PostgreSQL with unxODBC

  • Quote

Post by ONEEYEMAN » Mon Dec 23, 2024 6:16 am

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

My configuratioon is as follows:

Code: Select all

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: Select all

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.
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3537
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Mon Dec 23, 2024 10:22 am

At a first glance, the default port is 5432.

Also, have you need to disable minimal use flag if you haven't done so.

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

Best Regards,
Georgi
Top
Post Reply

2 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic