I'm trying to connect to a database but it doesn't work...
Code:
Dim conn As MysqlConnection
conn = New Mysqlconnection()
conn.ConnectionString = "server=http://www.*****.net/phpMyAdmin; user id=*****; password=****; database=login"
Try
conn.Open()
Catch myerror As MySqlException
MsgBox("Error connecting to database!")
End Try
it alsways says Error connecting to database!
what's the problem??
Try conn.Open() Catch myerror As MySqlException MsgBox(myerror.message) End TryThis will give you more detailed exception information.