This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Mysql2 { | |
// JDBC 驱动名及数据库 URL | |
static final String JDBC_DRIVER = "com.mysql.jdbc.Driver"; | |
static final String DB_URL = "jdbc:mysql://host:3306/dbname"; | |
// 数据库的用户名与密码,需要根据自己的设置 | |
static final String USER = "user"; | |
static final String PASS = "password"; | |
public static void main(String[] args) { |
NewerOlder