Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jdbc odbc use: no suitable driver

Status
Not open for further replies.

KJS2002

Programmer
Jul 15, 2002
11
GB
I'm trying to connect to mySQL using a servlet and the sun.jdbc.odbc.JdbcOdbcDriver. I think the driver is found but i get the message 'no suitable driver' when i try: DriverManager.getConnection("jdbc:mySQL://localhost:3306/test");
 
hi,

There are two ways to work it around.
1. Use mm.mysql driver and set CLASSPATH properly. But it may cause some problem with the javac.
2. Use MyODBC as driver. set up DNS and database source and leave other fields blank. Then use DriveManager.getConnection("jdbc:eek:dbc:test") where "test" is the DNS name.

That is all I can help now. I am trying to figure out some other ways by myself.

Hope it helps a bit.

Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top