Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // db parameters
- String url = "jdbc:root://localhost:3306?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC";
- String user = "root";
- String password = "";
- Connection conn = null;
- try(conn = DriverManager.getConnection(url, "root", "")) {
- conn.setCatalog("fel stellenanzeigencatch");
- // xd
- } catch(SQLException e) {
- System.out.println(e.getMessage());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement