joseleonweb

Untitled

May 14th, 2021
595
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         }
RAW Paste Data