JAVA链接mysql数据库

package sjk_1; import java.sql.*; public class sjkmysql_1 { public static void main(String[] args){ Connection con; String driver = "com.mysql.jdbc.Driver"; String url="jdbc:mysql://localhost:3306/usb"; String user="root"; String password="root"; try{ Class.forName(driver); con=DriverM...
默认分类 | 2018-03-26 14:56 | 阅读 759 次 | 评论 0 条
浏览763次
文章分类
文章归档
最新评论