4 messages in com.mysql.lists.javaNo Suitable driver
FromSent OnAttachments
Thom Hehl21 Jan 2006 15:05 
Ralf Hauser08 Feb 2006 06:53 
Ralf Hauser08 Feb 2006 09:50 
Ralf Hauser09 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()); }