Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- url = "jdbc:mysql://adm.minecraft-mania.fr:3306/a12014122813292385692366?useSSL=false";
- host = "adm.minecraft-mania.fr";
- database = "a12014122813292385692366";
- username = "120141228692366";
- password = "vSKz4pnJz9Fxg";
- port = 3306;
- table = "playerData";
- try {
- synchronized(this)
- {
- if(getMainConnection() != null && !getMainConnection().isClosed()) {
- return;
- }
- try
- {
- Class.forName("com.mysql.jdbc.Driver");
- }
- catch (ClassNotFoundException f)
- {
- f.printStackTrace();
- }
- this.setConnection(DriverManager.getConnection(this.url, this.username, this.password));
- System.out.println("######## MySQL connecté ########");
- }
- }
- catch(SQLException f)
- {
- f.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement