Chapter 4. Troubleshooting

This chapter includes solutions and workarounds for problems you might encounter while using MM.MySQL.

No Suitable Driver

Occasionally you will get a SQLException thrown on the DriverManager.getConnection() method that has the message "No Suitable Driver". This almost always means that the MM.MySQL driver was never loaded, or the JDBC URL doesn't start with "jdbc:mysql://". Make sure that you have called newInstance() on Class.forName("org.gjt.mm.mysql.Driver"), to work around some broken JVMs, and that the MM.MySQL classes are available in the CLASSPATH of your application or applet.