Fatal Error in Gdn_Database.Connection();

An error occurred while attempting to connect to the database

SQLSTATE[08004] [1040] Too many connections

The error occurred on or near: /var/www/turpravda/turpravda-main/src/www/forums/library/database/class.database.php

63:                     
64:             if ($Timeout)
65:                throw new Exception(ErrorMessage('Timeout while connecting to the database', $this->ClassName, 'Connection', $ex->getMessage()), 504);
66:             
67:             trigger_error(ErrorMessage('An error occurred while attempting to connect to the database', $this->ClassName, 'Connection', $ex->getMessage()), E_USER_ERROR);
68:          }
69:       }
70:       
71:       return $this->_Connection;

Backtrace:

/var/www/turpravda/turpravda-main/src/www/forums/library/database/class.database.phpPHP::Gdn_ErrorHandler();
[/var/www/turpravda/turpravda-main/src/www/forums/library/database/class.database.php:67] PHP::trigger_error();
[/var/www/turpravda/turpravda-main/src/www/forums/library/database/class.database.php:289] Gdn_Database->Connection();
[/var/www/turpravda/turpravda-main/src/www/forums/library/database/class.sqldriver.php:1650] Gdn_Database->Query();
[/var/www/turpravda/turpravda-main/src/www/forums/library/database/class.sqldriver.php:674] Gdn_SQLDriver->Query();
[/var/www/turpravda/turpravda-main/src/www/forums/applications/vanilla/models/class.discussionmodel.php:1289] Gdn_SQLDriver->Get();
[/var/www/turpravda/turpravda-main/src/www/forums/applications/vanilla/controllers/class.discussioncontroller.php:68] DiscussionModel->GetID();
[/var/www/turpravda/turpravda-main/src/www/forums/applications/vanilla/controllers/class.discussioncontroller.php:68] DiscussionController->Index();
[/var/www/turpravda/turpravda-main/src/www/forums/library/core/class.dispatcher.php:350] PHP::call_user_func_array();
[/var/www/turpravda/turpravda-main/src/www/forums/index.php:67] Gdn_Dispatcher->Dispatch();

Variables in local scope:

[ex] array (
  'errorInfo' => NULL,
)
[Timeout] false

Need Help?

If you are a user of this website, you can report this message to a website administrator.

If you are an administrator of this website, you can get help at the Vanilla Community Forums.

Additional information for support personnel: