POO_Pieces/DonjonBdB.java

12 lines
287 B
Java
Raw Normal View History

2023-12-20 13:39:18 +01:00
public class DonjonBd extends Donjon{
public void connection(){
2023-12-20 11:14:51 +01:00
Connection cnx = DriverManager.getConnection(
"jdbc:mariadb://dwarves.iut-fbleau.fr/elhaddad",
"elhaddad", "NassimPHP77550");
try{
Class.forName("org.mariadb.jdbc.Driver");
}catch(ClassNotFoundException);
2023-12-20 13:39:18 +01:00
}
2023-12-20 11:14:51 +01:00
}