Guest User

Untitled

a guest
Feb 28th, 2018
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. try {
  2.             Class.forName("com.mysql.jdbc.Driver");
  3.             System.out.println("Driver O.K.");
  4.  
  5.             String url = "jdbc:mysql://adm.minecraft-mania.fr:3306/a12014122813292385692366";
  6.             String user = "120141228692366";
  7.             String passwd = "vSKz4pnJz9Fxg";
  8.  
  9.             Connection conn = DriverManager.getConnection(url, user, passwd);
  10.  
  11.             if(conn == null)
  12.                 System.out.println("Null");
  13.             else
  14.                 System.out.println("Non null");
  15.            
  16.             System.out.println("Connexion effective !");
  17.            
  18.           } catch (Exception e) {
  19.             e.printStackTrace();
  20.           }
Add Comment
Please, Sign In to add comment