mysqli_sql_exception Object
(
    [message:protected] => Connection refused
    [string:Exception:private] => mysqli_sql_exception: Connection refused in /var/www/arianahotel.am/web/classes/class.database.php:252
Stack trace:
#0 /var/www/arianahotel.am/web/classes/class.database.php(252): mysqli_connect()
#1 /var/www/arianahotel.am/web/classes/class.database.php(43): database->check_connection()
#2 /var/www/arianahotel.am/web/init.php(43): database->__construct()
#3 /var/www/arianahotel.am/web/home_init.php(7): require_once('...')
#4 /var/www/arianahotel.am/web/index.php(2): require('...')
#5 {main}
    [code:protected] => 2002
    [file:protected] => /var/www/arianahotel.am/web/classes/class.database.php
    [line:protected] => 252
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/arianahotel.am/web/classes/class.database.php
                    [line] => 252
                    [function] => mysqli_connect
                )

            [1] => Array
                (
                    [file] => /var/www/arianahotel.am/web/classes/class.database.php
                    [line] => 43
                    [function] => check_connection
                    [class] => database
                    [type] => ->
                )

            [2] => Array
                (
                    [file] => /var/www/arianahotel.am/web/init.php
                    [line] => 43
                    [function] => __construct
                    [class] => database
                    [type] => ->
                )

            [3] => Array
                (
                    [file] => /var/www/arianahotel.am/web/home_init.php
                    [line] => 7
                    [args] => Array
                        (
                            [0] => /var/www/arianahotel.am/web/init.php
                        )

                    [function] => require_once
                )

            [4] => Array
                (
                    [file] => /var/www/arianahotel.am/web/index.php
                    [line] => 2
                    [args] => Array
                        (
                            [0] => /var/www/arianahotel.am/web/home_init.php
                        )

                    [function] => require
                )

        )

    [previous:Exception:private] => 
    [sqlstate:protected] => HY000
)