Advertisement
joseleonweb

Untitled

May 14th, 2021
866
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1.         // db parameters
  2.         String url       = "jdbc:mysql://192.168.19.134:3306/hr";
  3.         String user      = "root";
  4.         String password  = "Admin123";
  5.  
  6.         try(Connection con = DriverManager.getConnection(url, user, password);) {
  7.             // processing here
  8.         } catch(SQLException e) {
  9.            System.out.println(e.getMessage());
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement