I cannot seem to connect with my Server. I suspect it is the wrong connection string -> DRIVER={MySQL ODBC 3.51 Driver}. I am using MySQL 3.23.41 on the webhoster. Is this the right connection string to use?
I get the error "Data source name not found and no default driver specified".
Thanks ahead of time.
Code:
Dim conn As ADODB.Connection
Set conn = New ADODB.Connection
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
conn.CursorLocation = adUseClient
conn.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" _
& "SERVER=127.0.0.1;" _
& "DATABASE=test;" _
& "UID=testuser;" _
& "PWD=12345;" _
& "OPTION=" & 1 + 2 + 8 + 32 + 2048 + 16384
conn.Open 'Error Here!!!
conn.BeginTrans
rs.Open "select data from ppData where yearMonthID = 1 and x = 0 and y = 0;", conn, adOpenStatic, adLockOptimistic, adCmdText
rs.Delete
rs.Close
conn.CommitTrans
conn.Close
Set conn = Nothing
Set rs = Nothing
I get the error "Data source name not found and no default driver specified".
Thanks ahead of time.