JDBC中的DriverManager.getConnection(url)中的参数url

MySQL数据库

String url ="jdbc:mysql://localhost/myDB?user=soft&password=soft1234&useUnicod e=true&characterEncoding=8859_1"
//myDB为数据库名
Connection conn= DriverManager.getConnection(url);

posted @ 2019-06-07 02:38  hui_lyh  阅读(3176)  评论(0编辑  收藏  举报