12 lines
287 B
Java
12 lines
287 B
Java
public class DonjonBd extends Donjon{
|
|
|
|
public void connection(){
|
|
Connection cnx = DriverManager.getConnection(
|
|
"jdbc:mariadb://dwarves.iut-fbleau.fr/elhaddad",
|
|
"elhaddad", "NassimPHP77550");
|
|
|
|
try{
|
|
Class.forName("org.mariadb.jdbc.Driver");
|
|
}catch(ClassNotFoundException);
|
|
}
|
|
} |