文章詳情頁(yè)
thinkphp出現(xiàn) mysql too many connections
瀏覽:214日期:2022-06-20 18:48:33
問(wèn)題描述
thinkphp mysql too many connection這個(gè)錯(cuò)誤!大家有沒(méi)有遇到呀?求助~我的mysql最大連接數(shù)是300

問(wèn)題解答
回答1:登錄mysql終端,使用show full processlist查看mysql連接信息。
回答2:Mysql達(dá)到連接數(shù)上限了,修改一下mysql的配置即可。
show variables like ’%max_connections%’;set global max_connections = 5000;
如果連接數(shù)比5000還多,那就要上主從復(fù)制讀寫(xiě)分離了,避免單機(jī)讀寫(xiě)上限。
回答3:重啟mysql,或者立馬斷網(wǎng),有可能你的mysql數(shù)據(jù)庫(kù)被別人ddos了
上一條:find_in_set - 請(qǐng)教 mysql查詢(xún)下一條:mysql - 社交關(guān)系數(shù)據(jù)庫(kù)中關(guān)聯(lián)表是否應(yīng)該帶有額外的信息?
相關(guān)文章:
1. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””2. docker-compose中volumes的問(wèn)題3. boot2docker無(wú)法啟動(dòng)4. nignx - docker內(nèi)nginx 80端口被占用5. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.6. docker容器呢SSH為什么連不通呢?7. node.js - antdesign怎么集合react-redux對(duì)input控件進(jìn)行初始化賦值8. dockerfile - 為什么docker容器啟動(dòng)不了?9. java - SSH框架中寫(xiě)分頁(yè)時(shí)service層中不能注入分頁(yè)類(lèi)10. 關(guān)于docker下的nginx壓力測(cè)試
排行榜

熱門(mén)標(biāo)簽
網(wǎng)公網(wǎng)安備