Pages

2010年8月11日 星期三

mysql 連線數

#查詢目前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的設定值就會被清掉

可在 my.cnf裡設定 set-variable = max_connections=200

存檔後,重新啟動MySQL即可

沒有留言:

張貼留言