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:

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