Com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

di il
1 risposte

Com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

Devo accedere a questo database che non è nel mio computer, ma su internet.
Mi da questo errore:
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

Questo è il codice
dove ci sono le x ho messo l'ip del database
  try {
   String url = "jdbc:mysql://xxx.x.xxx.xx:3306/qui_ho_messo_il_nome_del_database";

            c = DriverManager.getConnection(url, "nome_utente", "password");
  
  
        } catch (Exception e) {
            System.out.println( e);
        }

1 Risposte

Devi accedere o registrarti per scrivere nel forum
1 risposte