import java.sql.*;

public class ConnessioneDB {
	static {
		try {
			Class.forName("com.mysql.jdbc.Driver").newInstance();
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	Connection conn = null;
	
	/*
	String url = "jdbc:mysql://localhost:3306/";
	String dbName = "calcio";
	String userName = "root";
	String password = "";
	*/
	
	
	String url = "jdbc:mysql://127.11.139.2:3306/";
	String dbName = "sirio";
	String userName = "adminlL8hBfI";
	String password = "HPZjQCQsnVG4";
	
	
	public Connection openConnection(){
		try {
			conn = DriverManager.getConnection(url+dbName,userName,password);
			System.out.println("Connessione al DataBase stabilita!");
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return conn;
	}

	public void closeConnection(Connection conn){
		try {
			  conn.close();
			  System.out.println(" Chiusa connessione al DB!");
			  }
			  catch (SQLException e) {
				  e.printStackTrace();
			  }
			  }

}
@@ -460,10 +460,8 @@
 %0A%09%0A%09
-/*
 %0A%09St
@@ -584,15 +584,14 @@
 %22%22;%0A
-%09*/
 %0A%09%0A%09
+/*
 %0A%09St
@@ -732,16 +732,19 @@
 snVG4%22;%0A
+%09*/
 %09%0A%09%0A%09pub
@@ -1240,8 +1240,9 @@
 %09%09  %7D%0A%0A%7D
+%0A

Update ConnessioneDB.java