// TODO Auto-generated method stub
String drivers="com.mysql.cj.jdbc.Driver";
String url="地址";
String username="用户名";
String password="密码";
Class.forName(drivers);
Connection connection = DriverManager.getConnection(url,username,password);
PreparedStatement preparedStatement = connection.prepareStatement("select * from snose");//每个数据的表分开装
ResultSet resultSet = preparedStatement.executeQuery();//数据库返回信息