ODBC connector

Hi,

I have installed MySQL Community Server: 5.6.19 with MySQL ODBC connector v5.3.2 .

I am using below mentioned connection string - "Driver={MySQL ODBC 5.3 Driver};SERVER=localhost;port=3306;DATABASE=ucm_db;UID=root;PASSWORD=root@123;OPTION=3;"

OdbcConnection con = new OdbcConnection("Driver={MySQL ODBC 5.3 Driver};SERVER=localhost;port=3306;DATABASE=db;UID=root;PASSWORD=root@123;OPTION=3;");

con.Open();
It is giving me this error - ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.

Please help and provide correct driver for connection string if it is wrong.

0 answers