Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean openConnection() {
- try {
- con = DriverManager.getConnection("jdbc:mysql://" + host + "/" + database + "?autoReconnect=true&useSSL=true",
- username, password);
- } catch (SQLException e) {
- System.err.println("SQLException: " + e.getMessage());
- System.err.println("SQLState: " + e.getSQLState());
- System.err.println("VendorError: " + e.getErrorCode());
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement