Witam.
Dlaczego nie mogę się połączyć z bazą mysql?
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
MysqlConn = New MySqlConnection
MysqlConn.ConnectionString = "Server=mysql1.phpmyadmin.prv.pl;" & _
"Database=1050763_ZeM;" & _
"Uid=1050763_ZeM;" & _
"Pwd=xxxxxx;" & _
"Connect Timeout=30;"
Try
MysqlConn.Open()
MessageBox.Show("Connection Successful")
MysqlConn.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
MysqlConn.Dispose()
End Try
End Sub
wywala mi błąd:
Unable to connect to any of the specified MySQL hosts when checking connection