我使用的这个 Mysql.data.dll 文件
web.config上面主要需要声明以下代码
1 < system.data > 2 < DbProviderFactories > 3 < add name ="MySQL Data Provider" invariant ="MySql.Data.MySqlClient1" description =".Net Framework Data Provider for MySQL" type ="MySql.Data.MySqlClient.MySqlClientFactory,MySql.Data" /> 4 </ DbProviderFactories > 5 </ system.data >