Hello group
Linux Mandrake 10.1, WxWidgets version 2.6 , MySQL server version 4.1.6-gamma-standard.
I'm trying from two days with wx/samples/db/.
I have instaled and configured ODBC. ODBC is OK. MySQL is OK.
ODBC connection to MySQL is OK.
(I checked it with DataManagerII, isql, odbctest)
But I sill obtain "Unable to connect to the data source..." when I'm trying to execute dbtest.
please find below description of whole configuration.
Any ideas what I'm doing wrong???
thanks for your help
tom
db sample configuration
dbtest.cfg file:
test
valid_user
valid_password
ODBC configuration
odbcinst.ini file:
[MySQL]
Description = MySQL ODBC
Driver = /usr/local/lib/libmyodbc3.so
Setup = /usr/local/lib/libodbcmyS.la
odbc.ini file:
[test]
Description = baza_mysql test
Driver = MySQL
Server = localhost
Database = test
Port = 3306
.odbc.ini file:
[test]
Description = baza_mysql test
Driver = MySQL
Server = localhost
Database = test
Port = 3306
Linux,wxWidgets2.6 ODBC works properly,but still "Unabl
-
- In need of some credit
- Posts: 5
- Joined: Sun Jan 16, 2005 2:43 pm
-
- In need of some credit
- Posts: 5
- Joined: Sun Jan 16, 2005 2:43 pm
solution is simple
So I answer myself.
ODBC instalation path in my case was /usr/local/etc.
Because of it, aplication did't work until I moved odbcinst.ini and odbc.ini files to /etc directory.
Is it posible to set this directory? I suppose no.
Why we haven't for example wxDbConnectInf::SetDefaultODBCDir ?
jach
ODBC instalation path in my case was /usr/local/etc.
Because of it, aplication did't work until I moved odbcinst.ini and odbc.ini files to /etc directory.
Is it posible to set this directory? I suppose no.
Why we haven't for example wxDbConnectInf::SetDefaultODBCDir ?
jach
-
- Moderator
- Posts: 3176
- Joined: Mon Aug 30, 2004 6:55 am
- Location: Germany, Cologne