【发布时间】:2013-08-19 08:25:16
【问题描述】:
我最近收到一个 mysql to many connectiions 错误,我使用了如下的 sql 查询
SET GLOBAL max_conmnections = 8000; 和我还提高了mysql.pool.max to 8000,当我的模拟器在调试器中时,它在这个 void 上崩溃
private static SqlDatabaseClient CreateClient(int Id)
{
MySqlConnection Connection = new MySqlConnection(GenerateConnectionString());
Connection.Open();
return new SqlDatabaseClient(Id, Connection);
}
导致它崩溃的突出显示的行是connection.open(); 它发生在我收到 10-12 个在线连接时,模拟器在调试器中运行了 7-8 小时!
【问题讨论】:
标签: c# mysql mysqlconnection