MySQL Forums
Forum List  »  Connector/ODBC

Correct connectionstring for ODBC 5.2.5
Posted by: Ali Alami
Date: July 01, 2013 05:33PM

Hello,

I'm using ODBC connectors for a very long time.

- For ODBC 3.51 I'm using the following connection string:

("Driver={MySQL ODBC 3.51 Driver};Server=localhost;Port=3306;Database=mydatabase;User=root;Password=mypass;Option=3;")


- For ODBC 5.1 I'm using the following connection string:

("Driver={MySQL ODBC 5.1 Driver};Server=localhost;Port=3306;Database=mydatabase;User=root;Password=mypass;Option=3;")


- For ODBC 5.2.4 I'm using the following connection string:

("Driver={MySQL ODBC 5.2a Driver};Server=localhost;Port=3306;Database=mydatabase;User=root;Password=mypass;Option=3;")


- But for the latest version 5.2.5, When I use the following connection:

("Driver={MySQL ODBC 5.2a Driver};Server=localhost;Port=3306;Database=mydatabase;User=root;Password=mypass;Option=3;")

An exception is throw saying that: ERROR [IM002] data source not found and driver name not specified


So please can you tell me the correct connectionstring to use with this latest version (5.2.5). I'm using the 32bits version of this driver

Thanks

Options: ReplyQuote


Subject
Written By
Posted
Correct connectionstring for ODBC 5.2.5
July 01, 2013 05:33PM


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.