SHOW:
|
|
- or go back to the newest paste.
1 | Class.forName("com.mysql.jdbc.Driver").newInstance(); | |
2 | java –cp .:jdbc.jar YOUR_PROGRAM | |
3 | ||
4 | ||
5 | import java.sql.* | |
6 | Connection conn = null; | |
7 | - | conn = DriverManager.getConnection(DB_ADDRESS, DB_USER, DB_PASSWORD); |
7 | + | conn = DriverManager.getConnection(linux1.cse.cuhk.edu.hk, CSCI3170S32, gJczQKgS); |