Cheers.
I am trying to code a little app which queries a MySQL server thru the database commands. But when I call ExamineDatabaseDrivers(), it just returns NULL and no drivers are listed.
I use Mandrake 9.2 and installed all RPMs found for the keyword ODBC. And InitDatabase doesn't return any errors, so I am almost certain that odbc works on my system.
What could be the problem?
Thx in advance, merendo
No ODBC Drivers available?
No ODBC Drivers available?
The truth is never confined to a single number - especially scientific truth!
-
olejr
- Enthusiast

- Posts: 152
- Joined: Sun Jul 11, 2004 7:48 pm
- Location: Lillehammer, No(r)way
- Contact:
Re: No ODBC Drivers available?
What's the return value then? If it's 0 then ODBC ismerendo wrote: And InitDatabase doesn't return any errors
not available or too old..
[EDIT]
I'm running Mandrake 10, and on my machine pbcompiler
throws an: /usr/bin/ld: cannot find -lodbc
-
olejr
- Enthusiast

- Posts: 152
- Joined: Sun Jul 11, 2004 7:48 pm
- Location: Lillehammer, No(r)way
- Contact:
the ODBC from mysql does not configure itself!
You have to do that 'by hand'!!
Here's the FAQ:
http://dev.mysql.com/doc/connector/odbc/en/faq_toc.html
This did it for me anyway...
You have to do that 'by hand'!!
Code: Select all
Edit /usr/share/doc/packages/MyODBC/odbc.ini (the *.so files are in /usr/lib)
Copy odbc.ini to /etc
Add this to /etc/profile:
ODBCINI="/etc/odbc.ini"
ODBCSYSINI="/etc/odbc.ini"
export ODBCINI ODBCSYSINIhttp://dev.mysql.com/doc/connector/odbc/en/faq_toc.html
This did it for me anyway...