Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // db parameters
  2. String url = "jdbc:root://localhost:3306?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC";
  3. String user = "root";
  4. String password = "";
  5.  
  6. Connection conn = null;
  7.  
  8. try(conn = DriverManager.getConnection(url, "root", "")) {
  9. conn.setCatalog("fel stellenanzeigencatch");
  10.  
  11. // xd
  12. } catch(SQLException e) {
  13. System.out.println(e.getMessage());
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement