Error: Database connection failed It is possible that the database is overloaded or otherwise not running properly. The site administrator should also check that the database details have been correctly specified in config.php
/var/log/httpd/error_log 有以下錯誤訊息。
PHP Warning: mysqli::mysqli(): (08004/1040): Too many connections in /var/www/html/moodle23/lib/dml/mysqli_native_moodle_database.php on line 377
/etc/my.cfg 的 section [mysqld] 中加入最大連線數量設定。
[root@dywang ~]# grep max /etc/my.cnf [mysqld] ....... max_connections = 500 max_user_connections = 500