Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- Class.forName("com.mysql.cj.jdbc.Driver");
- polaczenie = DriverManager.getConnection("jdbc:mysql://localhost/test?useUnicode=" +
- "true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC"
- ,"","");
- zapytanie = polaczenie.createStatement();
- System.out.println("Polaczenie udane");
- }
- catch (Exception exception)
- {
- System.out.println("Wystapil blad, Kod bledu: " + exception);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement