How to connect to MySQL versions older than 4.x, such as MySQL 3

The lastest MySQL Connector/J drivers do not work with MySQL versions prior to version 4. For connecting to MySQL version 3 or earlier, an older version of the MySQL Connector/J driver is needed, for example, MySQL Connector/J 3.1.

This driver can be found at the MySQL download site, located here:

http://dev.mysql.com/downloads/connector/j/3.1.html

The driver class name is also different when connecting to MySQL 3 or earlier. The class name should be the following: org.gjt.mm.mysql.Driver