Issue while using ODBC drivers in C++ program

S

SRK

Hi,
I am trying to use ODBC on Unix platform. I have installed unixODBC
driver manager and mysql connector. When I try to use through command
line, unixODBC driver manager works fine, but when I write a code in C+
+ and try to run, it gives me connection error -

[unixODBC][Driver Manager]Data source name not found, and no default
driver specified

I have my .odbc.ini file in my home directory and I have even set
ODBCINI pointing to the .odbc.ini file, but still I am getting this
error.

Will greatly appriciate any reply on the same.

Thanks
Shiv
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top