如何增加mysql连接

问题描述:

目前正在使用mysql服务器的网站上工作,但是当它达到最大连接时它会说太多的mysql连接(错误),因为手动我需要增加mysql命令提示符的连接。但我需要这样做如果连接达到100表示​​自动化,我需要增加no。使用c#的最大连接数,这样每当它到达i时,它将执行c#方法,以便它改变最大值。用户

Currently am working on a website which uses mysql server but when it reaches maximum connections it says too many mysql connections(error),for that manually i need to increase the connections from mysql command prompt.but i need to do that as an automation as in like if the connections reaches say 100 i need to increase the no. of max connections using c# so that whenever it reaches i will execute the c# method so that it changes maximum no. of users