Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- Connection conn = null;
- conn = DriverManager.getConnection("jdbc:mysql://192.168.0.151/" + mysql_db, mysql_usr, mysql_pwd);
- } catch (SQLException ex) {
- System.out.println("SQLException: " + ex.getMessage());
- System.out.println("SQLState: " + ex.getSQLState());
- System.out.println("VendorError: " + ex.getErrorCode());
- }
- conn.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement