CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1040] Too many connections (/opt/lampp/htdocs/tdoptions/protected/vendors/yiisoft/yii/framework/db/CDbConnection.php:399)

#0 /opt/lampp/htdocs/tdoptions/protected/vendors/yiisoft/yii/framework/db/CDbConnection.php(347): CDbConnection->open()
#1 /opt/lampp/htdocs/tdoptions/protected/vendors/yiisoft/yii/framework/db/CDbConnection.php(325): CDbConnection->setActive(true)
#2 /opt/lampp/htdocs/tdoptions/protected/vendors/yiisoft/yii/framework/base/CModule.php(394): CDbConnection->init()
#3 /opt/lampp/htdocs/tdoptions/protected/vendors/cornernote/yii-audit-module/audit/AuditModule.php(216): CModule->getComponent('db_audit')
#4 /opt/lampp/htdocs/tdoptions/protected/vendors/cornernote/yii-audit-module/audit/components/AuditActiveRecord.php(133): AuditModule->getDbConnection()
#5 /opt/lampp/htdocs/tdoptions/protected/vendors/cornernote/yii-audit-module/audit/components/AuditActiveRecord.php(66): AuditActiveRecord->getDbConnection()
#6 /opt/lampp/htdocs/tdoptions/protected/vendors/cornernote/yii-audit-module/audit/components/AuditActiveRecord.php(37): AuditActiveRecord->createTable()
#7 /opt/lampp/htdocs/tdoptions/protected/vendors/cornernote/yii-audit-module/audit/components/AuditErrorHandler.php(243): AuditActiveRecord->__construct()
#8 /opt/lampp/htdocs/tdoptions/protected/vendors/cornernote/yii-audit-module/audit/components/AuditErrorHandler.php(231): AuditErrorHandler->logException(Object(CDbException))
#9 /opt/lampp/htdocs/tdoptions/protected/vendors/cornernote/yii-audit-module/audit/components/AuditErrorHandler.php(109): AuditErrorHandler->logExceptionEvent(Object(CExceptionEvent))
#10 /opt/lampp/htdocs/tdoptions/protected/vendors/yiisoft/yii/framework/base/CApplication.php(740): AuditErrorHandler->handle(Object(CExceptionEvent))
#11 [internal function]: CApplication->handleException(Object(CDbException))
#12 {main}