Pooling mysql on c#
I'm using mysql database for my site, i want to use mysql pooling.
How do I implement mysql pooling on c# environment ?
i"m using the connection string like this example :
User ID=root;Password=myPassword;Host=localhost;Port=3306;Database=myDataBase; Direct=true;Prot开发者_StackOverflow中文版ocol=TCP;Compress=false;Pooling=true;Min Pool Size=0;Max Pool Size=100;Connection Lifetime=0;
Thanks !
You have to add pooling=True
to the connection string
Concerning connections string ConnectionStrings.com is a very valuable resource. Specific for MySql just click here.
精彩评论