Advertisement
Guest User

Untitled

a guest
Aug 11th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. try {
  2. Connection conn = null;
  3. conn = DriverManager.getConnection("jdbc:mysql://192.168.0.151/" + mysql_db, mysql_usr, mysql_pwd);
  4. } catch (SQLException ex) {
  5. System.out.println("SQLException: " + ex.getMessage());
  6. System.out.println("SQLState: " + ex.getSQLState());
  7. System.out.println("VendorError: " + ex.getErrorCode());
  8. }
  9.  
  10. conn.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement