Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Properties connectionProps = new Properties();
- connectionProps.put("user", userName);
- connectionProps.put("password", password);
- String urlDB = "jdbc:mysql://" + serverName + ":";
- urlDB += portNumber + "/" + dbName;
- Connection connect = DriverManager.getConnection(urlDB, connectionProps);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement