当我尝试打开连接时发生错误,然后说:
System.TypeInitializationException:'MySql.Data.MySqlClient.Replication.ReplicationManager'的类型初始值设定项引发了异常。
这是代码的一部分:
MySqlConnection _Conn;
public void Conectar()
{
new I18N.West.CP1250();
string SC;
SC = "server = XXX; Port = 3306; database = XXX; user id = XXX; password = XXX; charset = utf8";
_Conn = new MySqlConnection(SC);
_Conn.Open();
}
达令说
相关分类