1. Class.forName("org.gjt.mm.mysql.Driver");
2. private String strUrl = "jdbc:mysql://xxx.xxx.xxx.xx:3306/dbname";
private String strUser = "username";
private String strPwd = "password";
3. con = DriverManager.getConnection(strUrl,strUser,strPwd);
등록일: 2002-01-28 10:59:38
2. private String strUrl = "jdbc:mysql://xxx.xxx.xxx.xx:3306/dbname";
private String strUser = "username";
private String strPwd = "password";
3. con = DriverManager.getConnection(strUrl,strUser,strPwd);
등록일: 2002-01-28 10:59:38
'DB' 카테고리의 다른 글
not in 사용법 (0) | 2009.04.01 |
---|---|
[DB] mysql 백업/복구 명령 (0) | 2009.03.19 |
[DB] decode함수 예제 (0) | 2009.03.19 |
[DB] 기존 data 이용 테이블 생성 또는 입력 (0) | 2009.03.19 |
[DB] update join (0) | 2009.03.19 |