还没有试过呢,先粘上来再说。
How to connect MySql Server using JDBC
http://www.java-tips.org/other-api-tips/jdbc/how-to-connect-mysql-server-using-jdbc.html
User Rating: / 60
PoorBest
mysql-connector-java-3.1.10 is JDBC connector for MYSQL database. Place the mysql-connector-java-3.1.10-bin.jar file in your CLASSPATH variable or Application folder.
Example below makes connection to mySQL using com.mysql.jdbc.Driver.