67,513
社区成员
发帖
与我相关
我的任务
分享
import java.sql.Connection;
import java.sql.DriverManager;
public class JDBCTest {
public static void main(String[] args) throws Exception {
String driverClass = "com.mysql.jdbc.Driver";
String url = "jdbc:mysql://localhost:3306/sky";
String username = "root" ;
String password = "13579" ;
Class.forName(driverClass);
Connection con = DriverManager.getConnection(url,username,password);
}
}