I am using following code to connect to MySql Db but it gives error. please help me
"ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified "
string ConnStr = @"Driver={MySQL ODBC 3.51 Driver};" +
"Server=192.168.100.10/phpmyadmin/;Database=piggylock;uid=root;pwd=htroot;option=3";
using(OdbcConnection con = new OdbcConnection(ConnStr))
using(OdbcCommand cmd = new OdbcCommand("SELECT * FROM product", con))
{
con.Open();
newslist.DataSource = cmd.ExecuteReader(
CommandBehavior.CloseConnection |
CommandBehavior.SingleResult);
newslist.DataBind();
}