Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // db parameters
- String url = "jdbc:mysql://192.168.19.134:3306/hr";
- String user = "root";
- String password = "Admin123";
- try(Connection con = DriverManager.getConnection(url, user, password);) {
- // processing here
- } catch(SQLException e) {
- System.out.println(e.getMessage());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement