Hello,
I'm trying to open a connection to one of my MySQL databases but I'm getting the following error message:
MySql.Data.MySqlClient.MySqlException: #28000Access denied for user 'gib'@'localhost' (using password: YES)
at the line
Connection.open()
My VB code looks like this:
I'm not sure why I'm getting this error. I copied the above function from another website (http://www.cactusridgerr.com/contact.htm) which resides on and connects to the same MySQL server. I use the same username and password and am able to connect.
The only difference is the database I'm trying to connect to. This time I'm trying to connect to a new database I just created: autobody.
Does the user account gib have to somehow acquire certain priveleges to be able to connect to the new database?
The error message I'm getting can be seen at http://www.shahspace.com/autobody/index.aspx. Click the login button to see it.
I'm trying to open a connection to one of my MySQL databases but I'm getting the following error message:
MySql.Data.MySqlClient.MySqlException: #28000Access denied for user 'gib'@'localhost' (using password: YES)
at the line
Connection.open()
My VB code looks like this:
Function Connect() As String
Dim ConStr As String = "server=localhost; user id=gib; password=*****; database=autobody;"
Connection = New MySqlConnection(ConStr)
MDA = new MySqlDataAdapter()
DS = new DataSet()
Connection.open()
Return "OK"
End Function
I'm not sure why I'm getting this error. I copied the above function from another website (http://www.cactusridgerr.com/contact.htm) which resides on and connects to the same MySQL server. I use the same username and password and am able to connect.
The only difference is the database I'm trying to connect to. This time I'm trying to connect to a new database I just created: autobody.
Does the user account gib have to somehow acquire certain priveleges to be able to connect to the new database?
The error message I'm getting can be seen at http://www.shahspace.com/autobody/index.aspx. Click the login button to see it.