Hallo,
ich versuche micht mit meinem Programm (Visual Basic 2010) mit einer MySQL Datenbank zu verbinden.
Doch es kommt jedes Mal der selbe Fehler ohne Ladezeit: Unable to connect to any of the specified MySQL hosts.
Bei Userid, passwort und datenbank bin ich mir sicher dass es richtige angaben sind, aber ist der Server richtig?
danke im voraus!
ich versuche micht mit meinem Programm (Visual Basic 2010) mit einer MySQL Datenbank zu verbinden.
Doch es kommt jedes Mal der selbe Fehler ohne Ladezeit: Unable to connect to any of the specified MySQL hosts.
VB.NET-Quellcode
- Imports MySql.Data.MySqlClient
- Public Class login
- Dim sqlconn As MySqlConnection
- Private Sub bt_login_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_login.Click
- sqlconn = New MySqlConnection
- sqlconn.ConnectionString = "server=mysql.hostinger.de;userid=<myuserid>;password=<mypw>;database=db_test"
- Try
- sqlconn.Open()
- MessageBox.Show("Connected.")
- sqlconn.Close()
- Catch ex As Exception
- MessageBox.Show(ex.Message)
- Finally
- sqlconn.Dispose()
- End Try
- End Sub
- End Class
Bei Userid, passwort und datenbank bin ich mir sicher dass es richtige angaben sind, aber ist der Server richtig?
danke im voraus!