Please visit this website: http://dev.mysql.com/downloads/connector/j/3.1.html/.
Look for Source and Binaries (zip) and click on the link titled Pick a mirror corresponding to it as shown in Figure 3.24, “MySQL Connector/J 3.1.10 download”. Download the file by choosing a mirror to the location of your choice.
Perform the following steps.
Open the zip file that you just downloaded (mysql-connector-java-3.1.10.zip).
You will see a folder titled mysql-connector-java-3.1.10. Open this folder.
Look for a JAR file titled mysql-connector-java-3.1.10-bin.jar. Make sure that you DO NOT confuse this file with mysql-connector-java-3.1.10-bin-g.jar.
Extract the file mysql-connector-java-3.1.10-bin.jar to a convenient location so that it can referenced by J2EE Application Servers like JBoss or WebLogic. We recommend that you use the directory C:\starthis_demo\mysql_driver.