阅读背景:

我可以依赖使用语句关闭MySQL连接吗?

来源:互联网 

I have an ASP.NET website that uses mysql as it's database. I notice there are a lot of connections "sleeping" when I show a full process list. Today we had some errors "The timeout period elapsed prior to obtaining a connection from the pool.". If the processes are "sleeping" then are they still open from the code? All MySQL connections in the code are in using statements. Can I rely on the using statement to properly close connections?I have an ASP.NET website that uses mysql as it




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: