Mise à jour de 'DonjonBdB.java'

This commit is contained in:
Marjorie DAVELUY 2023-12-20 13:39:18 +01:00
parent 6f02d0541b
commit a1ab9b4e7f

View File

@ -1,4 +1,6 @@
public class DonjonBdB{ public class DonjonBd extends Donjon{
public void connection(){
Connection cnx = DriverManager.getConnection( Connection cnx = DriverManager.getConnection(
"jdbc:mariadb://dwarves.iut-fbleau.fr/elhaddad", "jdbc:mariadb://dwarves.iut-fbleau.fr/elhaddad",
"elhaddad", "NassimPHP77550"); "elhaddad", "NassimPHP77550");
@ -6,4 +8,5 @@ public class DonjonBdB{
try{ try{
Class.forName("org.mariadb.jdbc.Driver"); Class.forName("org.mariadb.jdbc.Driver");
}catch(ClassNotFoundException); }catch(ClassNotFoundException);
}
} }