How to configure ODBC for MySQL
Hi,
after more years that in UBUNTU I use ODBC to connnect my java stuff whit some DB ( MYSQL, IBM DB2 ) , in the last time I'm not more able to do this.
When in UBUNTU I try to run one of this java pgm, by console or by NETBEANS, I receive this messages:
danilo@
Exception in thread "main" java.lang.
at sun.jdbc.
at sun.jdbc.
at java.sql.
at java.sql.
at Hl.HlGestfiles.
at Hl.HlGestfiles.
at genealogia.
at genealogia.
This same java pgm in W7 is executed properly.
into the file ~/.odbc.ini ther is ( for MySQL):
[miosql]
Description = mysql
Driver = MySQL
Server = localhost
Database = miosql
Port =
Socket =
Option =
Stmt =
into the file /etc/odbcinst.ini ther is ( for MySQL):
MySQL]
Description = drv mysql
Driver = /usr/lib/
Driver64 = /usr/lib
Setup = /usr/lib/
Setup64 = /usr/lib
UsageCount = 1
CPTimeout =
CPReuse =
into the file /etc/odbc.ini ther is ( for MySQL):
[miosql]
Description = MySQL
Driver = MySQL
Server = localhost
Database = miosql
Port = 3306
Socket =
Option = 4
Stmt =
Can anyone tell me where I'm wrong?
Thanks in advance
danilo
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask vor_paul@yahoo.it for more information if necessary.