Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void connect() {
- try {
- conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/database.1?autoReconnect=true&useSSL=false","root","vadmyra9394");
- System.out.println("Tilkoblet database");
- } catch (Exception e)
- {
- throw new RuntimeException("Unable to connect", e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement