MySQL Forums
Forum List  »  Connector/ODBC

Data source cannot be found (ODBC 5.2.5)
Posted by: Stijn Beeckmans
Date: June 23, 2013 05:15AM

Hi

I recently bought a new laptop which has MySQL ODBC driver 5.2.5. My website (written in ASP) worked fine on my old laptop (MySQL ODBC driver 5.1.5).

When I try to run my code on my new laptop, I get the error saying that the data source cannot be found.

So, my question is: how can I connect using MySQL ODBC 5.2.5?? I tried using a DSN connection string (DSN connection tested and working) and a DSN-less. Both produced the same error. Do I forget something?

My code:

'DSN-less
'connStr = "Driver={MySQL ODBC 5.2w Driver};Server=localhost;Database=***;User=***;Password=***;Option=3;"
'DSN
connStr = "DSN=DSNvzkdb"

set conn = server.createobject("adodb.connection")
conn.open connStr

Thanks!

Options: ReplyQuote


Subject
Written By
Posted
Data source cannot be found (ODBC 5.2.5)
June 23, 2013 05:15AM


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.