Re: MySqlConnection doesn't close
Patrik
Using the connection string you gave and making sure there are zero connections currently on the mysql server, try this code:
for (int i=0; i < 20; i++)
{
MySqlConnection c = new MySqlConnection(connectionString);
c.Open();
c.Close();
}
after running this code, do a show processlist on the server and see how many connections you have. You should have 10 (min pool size) even though you opened 20 connections.
Subject
Written By
Posted
November 07, 2006 02:56PM
November 07, 2006 04:04PM
November 08, 2006 09:21AM
November 08, 2006 02:35PM
November 09, 2006 05:04AM
Re: MySqlConnection doesn't close
November 09, 2006 09:52AM
November 18, 2006 08:19AM
November 28, 2006 02:33PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.