Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- Class.forName("com.mysql.jdbc.Driver");
- System.out.println("Driver O.K.");
- String url = "jdbc:mysql://adm.minecraft-mania.fr:3306/a12014122813292385692366";
- String user = "120141228692366";
- String passwd = "vSKz4pnJz9Fxg";
- Connection conn = DriverManager.getConnection(url, user, passwd);
- if(conn == null)
- System.out.println("Null");
- else
- System.out.println("Non null");
- System.out.println("Connexion effective !");
- } catch (Exception e) {
- e.printStackTrace();
- }
Add Comment
Please, Sign In to add comment