成人在线亚洲_国产日韩视频一区二区三区_久久久国产精品_99国内精品久久久久久久

您的位置:首頁技術文章
文章詳情頁

thinkphp出現 mysql too many connections

瀏覽:113日期:2022-06-20 18:48:33

問題描述

thinkphp mysql too many connection這個錯誤!大家有沒有遇到呀?求助~我的mysql最大連接數是300thinkphp出現 mysql too many connections

thinkphp出現 mysql too many connections

問題解答

回答1:

登錄mysql終端,使用show full processlist查看mysql連接信息。

回答2:

Mysql達到連接數上限了,修改一下mysql的配置即可。

show variables like ’%max_connections%’;set global max_connections = 5000;

如果連接數比5000還多,那就要上主從復制讀寫分離了,避免單機讀寫上限。

回答3:

重啟mysql,或者立馬斷網,有可能你的mysql數據庫被別人ddos了

相關文章: