Ciao,
sto avendo problemi durante la connessione ad un database remoto, salta fuori il seguente errore nella stringa di connessione:
MySql.Data.MySqlClient.MySqlException: 'Unable to connect to any of the specified MySQL hosts.'
MySqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Public ServerSql As String = "xx.xx.xx.xx"
Public NomeSql As String = "Sqlxxxxxxx"
Public UserSql = "Sqlxxxxxxx"
Public PasswordSql As String = "xxx"
Public ConnSql As New MySqlConnection("Database=" & NomeSql & ";Data Source=" & ServerSql & ";User Id=" & UserSql & ";Password=" & PasswordSql & ";")
ConnSql.Open()
QuerySql.ExecuteNonQuery()
ConnSql.Close()
Grazie!