1.代码
public class Demo1 {
public static void main(String[] args) {
Connection connection=null;
Statement statement=null;
ResultSet resultSet=null;
try {
//注册驱动
Class.forName("com.mysql.jdbc.Driver");
//拿到con对象
connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/db3", "root", "fjtgyxa828998");
//写sql语句
String sql="select * f