|
|
Connection SQLconnection; SQLconnection = DriverManager.getConnection ( URL, USER, PASSWD ); Parameters: URL = location of the (MySQL) database server USER = userid (e.g., "cs377") PASSWD = password (e.g., "12345") |
Note:
|
|
Connection SQLconnection;
SQLconnection = DriverManager.getConnection (
"jdbc:mysql://holland.mathcs.emory.edu:3306/companyDB",
"cs377",
"abc123");
|
|
|