MySQL5.0连接jdbc
public class JDBCtest {
public static void main(String[] args) throws ClassNotFoundException, SQLException {
//获得驱动
Class.forName(“com.mysql.jdbc.Driver”);
//获取连接
Connection connection=DriverManager.getConnection(“jdbc:mysql://localhost:3306/bulid”,“root”,
原创
2021-08-03 22:26:34 ·
830 阅读 ·
0 评论