ConfigException Object
(
    [message:protected] => 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', 'DeliveryDB')
#2 /System/pvt/system/mySQL.php(13): MySQLClient->Init()
#3 /System/pvt/system/db.php(27): MySQLClient->__construct(Array)
#4 /System/pvt/entity/exentity.php(32): DBClientFactory::Create('DeliveryDB', 'ReadDBServer')
#5 /System/pvt/entity/tr2header.php(46): EXEntity->Query('SELECT `Categor...')
#6 /System/TR2/controllers/common/header.php(29): tr2headerEntity->getMegaMenu(Array)
#7 /System/TR2/tr1header.php(34): require_once('/System/TR2/con...')
#8 /System/htdocs/layout_header.php(15): require_once('/System/TR2/tr1...')
#9 /System/htdocs/layout_default.php(134): include('/System/htdocs/...')
#10 /System/htdocs/framework.php(171): include('/System/htdocs/...')
#11 /System/htdocs/framework.php(120): Framework_RenderLayout()
#12 /System/htdocs/index.php(414): Framework()
#13 {main}
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /System/pvt/system/db.php
    [line:protected] => 31
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /System/pvt/entity/exentity.php
                    [line] => 32
                    [function] => Create
                    [class] => DBClientFactory
                    [type] => ::
                    [args] => Array
                        (
                            [0] => DeliveryDB
                            [1] => ReadDBServer
                        )

                )

            [1] => Array
                (
                    [file] => /System/pvt/entity/tr2header.php
                    [line] => 46
                    [function] => Query
                    [class] => EXEntity
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT `Category`.`id`, `Category`.`title`, `Category`.`iconUrl`, `Category`.`subIndex`, `URLs`.`urlKey` FROM `Category` INNER JOIN `URLs` ON `URLs`.`domainId` = '966' AND `URLs`.`action` = CONCAT('common/category&id=', `Category`.`id`) ORDER BY `Category`.`listIndex`, `Category`.`id` ASC;
                        )

                )

            [2] => Array
                (
                    [file] => /System/TR2/controllers/common/header.php
                    [line] => 29
                    [function] => getMegaMenu
                    [class] => tr2headerEntity
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /System/TR2/tr1header.php
                    [line] => 34
                    [args] => Array
                        (
                            [0] => /System/TR2/controllers/common/header.php
                        )

                    [function] => require_once
                )

            [4] => Array
                (
                    [file] => /System/htdocs/layout_header.php
                    [line] => 15
                    [args] => Array
                        (
                            [0] => /System/TR2/tr1header.php
                        )

                    [function] => require_once
                )

            [5] => Array
                (
                    [file] => /System/htdocs/layout_default.php
                    [line] => 134
                    [args] => Array
                        (
                            [0] => /System/htdocs/layout_header.php
                        )

                    [function] => include
                )

            [6] => Array
                (
                    [file] => /System/htdocs/framework.php
                    [line] => 171
                    [args] => Array
                        (
                            [0] => /System/htdocs/layout_default.php
                        )

                    [function] => include
                )

            [7] => Array
                (
                    [file] => /System/htdocs/framework.php
                    [line] => 120
                    [function] => Framework_RenderLayout
                    [args] => Array
                        (
                        )

                )

            [8] => Array
                (
                    [file] => /System/htdocs/index.php
                    [line] => 414
                    [function] => Framework
                    [args] => Array
                        (
                        )

                )

        )

    [previous:Exception:private] => 
)
Terminated from TRHelper::PrintVar