开发者

Pooling mysql on c#

开发者 https://www.devze.com 2022-12-21 07:36 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消