Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.76 KB | None | 0 0
  1. class verfimdp{
  2.  
  3.             public void main(String[] args){
  4.  
  5.                 String pilote = "com.mysql.jdbc.Driver";
  6.                
  7.  
  8.  
  9.                 try{
  10.                     Class.forName(pilote);
  11.              
  12.                     Connection connexion = DriverManager.getConnection("jdbc:mysql://sql.olympe-network.com/zugoent/66509_mdphemu ","66509_mdphemu","wbam3994");
  13.              
  14.                     Statement instruction = connexion.createStatement();
  15.              
  16.                     ResultSet resultat = instruction.executeQuery("SELECT * FROM mdp_hemu");
  17.                     while(resultat.next()){
  18.                        
  19.                         mdp = resultat;
  20.                     Scanner sc = new Scanner(System.in);
  21.                     System.out.println("Rentrez votre mot de passe:");
  22.                     String mdp_entre = sc.nextLine();
  23.                     if (mdp_entre == mdp)
  24.                     {
  25.                    
  26.  
  27.                     }
  28.                 }
  29.                 catch (Exception e){
  30.  
  31.                     System.out.println("echec pilote : "+e);
  32.                 }
  33.  
  34.                 }
  35.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement