Class.forName("com.mysql.jdbc.Driver");
String url = "jdbc:mysql://127.0.0.1:3306/test";
Connection con = (Connection) DriverManager.getConnection(url);
Statement stmt = (Statement) con.createStatement();
String query = "SELECT * FROM tmp";
ResultSet rs = stmt.executeQuery(query);
08-21
08-21
08-21
08-21
08-21