對這文章發表回應
發表限制: 非會員 可以發表
發表者: 冷日 發表時間: 2014/6/6 7:17:01
設定MySQL連線數
Posted by jiachi under MySQL , My_Note
#查詢目前MySQL Process 狀況
#查詢目前MySQL max connections
#設定MySQL max connections
但因為MySQL重開後, max_connections的設定值就會被清掉
可在 /etc/my.cnf 裡設定
存檔後,重新啟動MySQL即可
原文出處:Kiki's blog » 設定MySQL連線數
Posted by jiachi under MySQL , My_Note
#查詢目前MySQL Process 狀況
mysql> show processlist;
#查詢目前MySQL max connections
mysql> show variables like ‘max_connections’;
#設定MySQL max connections
mysql> set GLOBAL max_connections=200;
但因為MySQL重開後, max_connections的設定值就會被清掉
可在 /etc/my.cnf 裡設定
set-variable = max_connections=200
存檔後,重新啟動MySQL即可
原文出處:Kiki's blog » 設定MySQL連線數