Ajouter un commentaire

markove
jdbc avec mysql

Bonjour tout le monde s'il vous je ne sais pas pourquoi ce code ne marche pas chez moi

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;

public class test1{
  public static void main(String[] argv) throws Exception {
    Class.forName("com.mysql.jdbc.Driver");
    Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/mourad", "root", "root");
    Statement st = con.createStatement();
    st.executeQuery("select * from personne");
  }
}

   
   

Filtered HTML

Plain text

CAPTCHA
Cette question permet de vérifier que vous n'êtes pas un robot spammeur :-)
  SSS   H  H  PPPP   M   M  U   U 
S H H P P MM MM U U
SSS HHHH PPPP M M M U U
S H H P M M U U
SSSS H H P M M UUU