摘要:
这个代码是从mysql的jdbc的doc里摘下来的:import java.sql.*;public class TestMySqlConnection { public static void main(String[] args){ try { Class.forName("com.mysql.jdbc.Driver").newInstance(); } catch (Exception ex) { ex.printStackTrace(); } Connection conn = null; try { conn = DriverManager.getConnecti 阅读全文