Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void connect(boolean b) throws ClassNotFoundException{
- if(!b)return;
- Class.forName("com.mysql.jdbc.Driver");
- try {
- connection = DriverManager.getConnection("jdbc:mysql://144.76.175.222:3306/test","root","bpaGm5L3TMDvb8");
- System.out.println("[DATABASE] Connecte");
- } catch (SQLException e) {
- e.printStackTrace();
- System.out.println("[DATABASE] Problème lors de la connection a la base de données");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement