I'm having a lot of trouble connecting to a MySQL database on my webserver. Everytime I run this code I get this error message:
[DBNETLIB][ConnectionOpen(Connect()).]SQL Server does not exist of access denied. Invalid connection string attribute
Does anyone see what I am doing wrong?
-lucyv
[DBNETLIB][ConnectionOpen(Connect()).]SQL Server does not exist of access denied. Invalid connection string attribute
Code:
Dim pconConnection As New OleDb.OleDbConnection
With pconConnection
.ConnectionString = "PROVIDER=SQLOLEDB;" & _
"DRIVER={MySQL ODBC 3.51 Driver};" & _
"SERVER=mysql.domain.com;" & _
"DATABASE=###;" & _
"UID=###;" & _
"PWD=###;" & _
"OPTION=3;" & _
"PORT=3306"
.Open()
End With
Does anyone see what I am doing wrong?
-lucyv