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

您的位置:首頁技術(shù)文章
文章詳情頁

thinkphp出現(xiàn) mysql too many connections

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

問題描述

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

thinkphp出現(xiàn) mysql too many connections

問題解答

回答1:

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

回答2:

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

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

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

回答3:

重啟mysql,或者立馬斷網(wǎng),有可能你的mysql數(shù)據(jù)庫被別人ddos了

相關(guān)文章: