开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜