MySQL Error “Too many connections”

后端 未结 7 2142
猫巷女王i
猫巷女王i 2020-11-30 05:37

I am using MySQL 5.0 for a site that is hosted by GoDaddy (linux).

I was doing some testing on my web app, and suddenly I noticed that the pages were refreshing rea

7条回答
  •  迷失自我
    2020-11-30 06:36

    Followings are possible solutions:

    1) Increase the max connection setting by setting the global variable in mysql.

    set global max_connection=200;
    

    Note: It will increase the server load.

    2) Empty your connection pool as below :

    FLUSH HOSTS;

    3) check your processList and kill specific processlist if you don't want any of them.


    You may refer this :-

    article link

提交回复
热议问题