4 messages in com.mysql.lists.javaNo Suitable driver| From | Sent On | Attachments |
|---|---|---|
| Thom Hehl | 21 Jan 2006 15:05 | |
| Ralf Hauser | 08 Feb 2006 06:53 | |
| Ralf Hauser | 08 Feb 2006 09:50 | |
| Ralf Hauser | 09 Feb 2006 08:19 |
| Subject: | No Suitable driver![]() |
|---|---|
| From: | Thom Hehl (th...@nowhereatall.com) |
| Date: | 01/21/2006 03:05:49 PM |
| List: | com.mysql.lists.java |
Anyone tell me why I'm getting the following error?
Registering:com.mysql.jdbc.Driver SQLException: No suitable driver SQLState: 08001 VendorError: 0
String driverName=args[1]; try { System.out.println("Registering:"+driverName); Class.forName(driverName).newInstance(); } catch (Exception ex) { ex.printStackTrace(); }
String connectString=args[2]; try { DbConn = DriverManager.getConnection(connectString); } catch (SQLException ex) { // handle any errors System.out.println("SQLException: " + ex.getMessage()); System.out.println("SQLState: " + ex.getSQLState()); System.out.println("VendorError: " + ex.getErrorCode()); System.exit(ex.getErrorCode()); }
Thom Hehl Heavyweight Software for Heavyweight Needs www.heavyweightsoftware.com
-- "In every revolution, there is one man with a vision."--Jerome Bixby




