Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void connect() {
- try {
- con = DriverManager.getConnection("jdbc:mysql://" + HOST + ":3306/" + DATABASE + "?useSSL=false", USER, PASSWORD);
- System.out.println("[MySQL] Verbindung hergestellt!");
- } catch (SQLException e) {
- System.out.println("[MySQL] Es konnte keine Verbindung aufgebaut werden! Fehler: " + e.getMessage());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement