[Thu May 31 10:37:42 2012] index.cgi: Can't connect to the database.
[Thu May 31 10:37:42 2012] index.cgi: Error: Too many connections
[Thu May 31 10:37:42 2012] index.cgi: Is your database installed and up and running?
[Thu May 31 10:37:42 2012] index.cgi: Do you have the correct username and password selected in localconfig?
似乎是連線數太多,最後兩行訊息確認DB是否有安裝及執行?確認過有在執行。確認帳號密碼是否正確?帳號密碼都沒變更過,不可能有錯。
查了一下 google 關於 Too many connections,原來MySQL預設是 100 sessions,所以我們來修改一下 MySQL 的最大連線數,試看看之後還會不會再發生。
# vi /etc/my.cnf[mysqld]
set-variable = max_connections=2000
# service mysqld restart
[Thu May 31 10:37:42 2012] index.cgi: Error: Too many connections
[Thu May 31 10:37:42 2012] index.cgi: Is your database installed and up and running?
[Thu May 31 10:37:42 2012] index.cgi: Do you have the correct username and password selected in localconfig?
似乎是連線數太多,最後兩行訊息確認DB是否有安裝及執行?確認過有在執行。確認帳號密碼是否正確?帳號密碼都沒變更過,不可能有錯。
查了一下 google 關於 Too many connections,原來MySQL預設是 100 sessions,所以我們來修改一下 MySQL 的最大連線數,試看看之後還會不會再發生。
# vi /etc/my.cnf[mysqld]
set-variable = max_connections=2000
# service mysqld restart
沒有留言:
張貼留言