update
This commit is contained in:
BIN
DEV.3.1/MonProgramme.class
Normal file
BIN
DEV.3.1/MonProgramme.class
Normal file
Binary file not shown.
27
DEV.3.1/MonProgramme.java
Normal file
27
DEV.3.1/MonProgramme.java
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
import java.sql.*;
|
||||||
|
|
||||||
|
public class MonProgramme {
|
||||||
|
|
||||||
|
public static void main(String[] args){
|
||||||
|
|
||||||
|
Connexion cnx = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
Class.forName("org.mariadb.jdbc.Driver");
|
||||||
|
cnx = DriverManager.getConnection("jdbc:mariadb://dwarves.iut-fbleau.fr/srivasta","srivasta", "Tiamzon2006");
|
||||||
|
System.out.println("Connexion réussie ! ");
|
||||||
|
|
||||||
|
} catch(ClassNotFoundException e) {
|
||||||
|
System.err.println("Classe non trouvee "+e);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(cnx != null){
|
||||||
|
try{
|
||||||
|
cnx.close();
|
||||||
|
}catch(SQLException e) {
|
||||||
|
System.err.println("Erreur lors de la fermeture : "+e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
1
DEV.3.1/mariadb-client.jar
Symbolic link
1
DEV.3.1/mariadb-client.jar
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
info/mariadb-client.jar
|
||||||
Reference in New Issue
Block a user