7 March 2014

How to connect to MySQL database using ASP.NET hosting



OdbcConnection cn = new OdbcConnection(“Driver={MySQL ODBC ODBC 5.2a Driver};Server=localhost or remote;Database=test;User=user;Password=pass;Option=3;”);
OdbcCommand cmd = new OdbcCommand();
OdbcDataAdapter da = new OdbcDataAdapter();
DataSet ds = new DataSet();
OdbcDataReader rd;

No comments:

Post a Comment