1、下载mysql for jdbc driver.
http://dev.mysql.com/downloads/connector/j/3.1.html
MySQL Connector/J is distributed as a .zip or .tar.gz archive containing
the sources and class files as well as a class-file only "binary" .jar
archive named "mysql-connector-java-3.1.10-bin.jar".
2、解压缩下载的文件,如:mysql-connector-java-3.1.10.zip
You will need to use the appropriate gui or command-line utility to un-archive
the distribution (for example, WinZip for the .zip archive, and "tar" for
the .tar.gz