6 messages in com.mysql.lists.javaJDBC problem
FromSent OnAttachments
Dave Eno25 Jan 2001 04:15 
Dave Eno25 Jan 2001 06:29 
Dave Eno25 Jan 2001 07:04 
Tim Endres25 Jan 2001 10:14 
Dror Matalon25 Jan 2001 10:18 
Dave Eno25 Jan 2001 12:07 
Subject:JDBC problem
From:Dave Eno (de@AVFCO.COM)
Date:01/25/2001 04:15:44 AM
List:com.mysql.lists.java

Hello. I apologize if this has been addressed a million times before. I'm relatively new to Java, but not new to programming or MySQL.

I installed the mm.mysql classes on my machine and CAN connect to MySQL tables and work with them.....but only when I write a java app that's running locally. When I create an applet, IE5.5 and Netscape both give the dreaded 'No Suitable Driver' error when I try to connect to the db. Here's some of my code:

--------------------------------- try { Class.forName("org.gjt.mm.mysql.Driver").newInstance(); } catch (SQLException E) { //print error msgs. }

try { CONNECTION C = DriverManager.getConnection("jdbc:mysql://path/to/MySQL_db?user=xxxx&passwor d=xxxx"); Statement S = C.createStatement(); ResultSet RS = S.executeQuery("SELECT * FROM...."); // etc..... } catch (SQLExceiption E) { //print errors. }

-----------------------------------------

I suspect that there's a system setting that wrong. Any help would be greatly appreciated. TIA.

Dave E.