Fatal error: Uncaught ConfigException: Error Creating MySQL Connection Instance. mysqli_connect(): (08004/1040): Too many connections#0 [internal function]: exceptions_error_handler(2, 'mysqli_connect(...', '/System/pvt/sys...', 27, Array) #1 /System/pvt/system/mySQL.php(27): mysqli_connect('db-slave.topran...', 'root', '#welcome123', 'ECommerce') #2 /System/pvt/system/mySQL.php(13): MySQLClient->Init() #3 /System/pvt/system/db.php(27): MySQLClient->__construct(Array) #4 /System/pvt/entity/ecomm.php(118): DBClientFactory::Create('ECommerce', 'ReadDBServer') #5 /System/htdocs/controller_ecomm.php(35): EcommEntity->getPaymentGateways('115') #6 /System/htdocs/controller_navigation.php(14): GetAccountDetailes('966', 0) #7 /System/htdocs/controller_info.php(6): require_once('/System/htdocs/...') #8 /System/htdocs/framework.php(163): include('/System/htdocs/...') #9 /System/htdocs/framework.php(91): Framework_LoadController() #10 /System/htdocs/index.php(414): Framework() #11 {main} in /System/pvt/system/db.php:31 Stack trace: in /System/pvt/system/db.php on line 31