MySQL Forums
Forum List  »  Install & Repo

Protocol Mismatch Error
Posted by: Chris Ryan
Date: August 30, 2004 02:36PM

I am attempting to write some Visual Basic 6 code to connect to a MySQL database. When I execute the following code (astericks included for confidentiality)...

Dim cn As ADODB.Connection
Set cn = New ADODB.Connection

cn.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" _
& "SERVER=***.***.***;" _
& "DATABASE=*****;" _
& "UID=*****;" _
& "PWD=*******;" _
& "OPTION=" & 1 + 2 + 8 + 32 + 2048 + 16384


...the following error appears:

[MySql][ODBC 3.51 Driver] Protocol Mismatch. Server version=9 Client version=10

Can anyone help me avoid this error?

Thanks in advance!

Options: ReplyQuote

Written By
Protocol Mismatch Error
August 30, 2004 02:36PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.