String driverClass="com.mysql.jdbc.Driver";Stringurl="jdbc:mysql://localhost:3306/message";
String user="root"; String password="111111";
Connection conn;
Class.forName(driverClass).newInstance();
conn=DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement();
String sql="SELECT * FROM record";
ResultSet rs=stmt.executeQuery(sql);