PDO FAIL : SQLSTATE[HY000] [2002] Connection refused

En cours : 
PDOException Object
(
    [message:protected] => SQLSTATE[HY000] [2002] Connection refused
    [string:Exception:private] => 
    [code:protected] => 2002
    [file:protected] => /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php
    [line:protected] => 127
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php
                    [line] => 127
                    [function] => __construct
                    [class] => PDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => mysql:dbname=golfluchon_dev;host=localhost
                            [1] => golfluchon
                            [2] => uu49V%f87cWzr36#
                        )

                )

            [1] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/core/modulo.class.php
                    [line] => 219
                    [function] => __construct
                    [class] => sqlDB
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [2] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/includes/headers.php
                    [line] => 8
                    [function] => __construct
                    [class] => Modulo
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [3] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/index.php
                    [line] => 2
                    [args] => Array
                        (
                            [0] => /var/www/vhosts/golf-luchon.net/new/includes/headers.php
                        )

                    [function] => include
                )

        )

    [previous:Exception:private] => 
    [errorInfo] => 
)

 Contexte : 
sqlDB Object
(
    [_config:sqlDB:private] => Array
        (
            [user] => golfluchon
            [pwd] => uu49V%f87cWzr36#
            [db_name] => golfluchon_dev
            [server] => localhost
            [type_db] => mysql
        )

    [_pdo:sqlDB:private] => 1
    [_handler:sqlDB:private] => 
    [_res:sqlDB:private] => 
    [_req] => 
    [_fetched:sqlDB:private] => 
    [_curr_line:sqlDB:private] => 0
    [_error:sqlDB:private] => errorClass Object
        (
            [_fichier:errorClass:private] => /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php
            [_ligne:errorClass:private] => 132
            [_objContext:errorClass:private] => sqlDB Object
 *RECURSION*
            [_message:errorClass:private] => 
        )

)

 Dans : /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php:132
Erreur de connexion à la BDD

PDO FAIL : SQLSTATE[HY000] [2002] Connection refused

En cours : 
PDOException Object
(
    [message:protected] => SQLSTATE[HY000] [2002] Connection refused
    [string:Exception:private] => 
    [code:protected] => 2002
    [file:protected] => /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php
    [line:protected] => 127
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php
                    [line] => 127
                    [function] => __construct
                    [class] => PDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => mysql:dbname=golfluchon_dev;host=localhost
                            [1] => golfluchon
                            [2] => uu49V%f87cWzr36#
                        )

                )

            [1] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/core/module.class.php
                    [line] => 227
                    [function] => __construct
                    [class] => sqlDB
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [2] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/core/modulo.class.php(135) : eval()'d code
                    [line] => 11
                    [function] => __construct
                    [class] => Module
                    [type] => ->
                    [args] => Array
                        (
                            [0] => modules/Main/
                            [1] => Modulo Object
                                (
                                    [_dbConnexion] => sqlDB Object
                                        (
                                            [_config:sqlDB:private] => Array
                                                (
                                                    [user] => golfluchon
                                                    [pwd] => uu49V%f87cWzr36#
                                                    [db_name] => golfluchon_dev
                                                    [server] => localhost
                                                    [type_db] => mysql
                                                )

                                            [_pdo:sqlDB:private] => 1
                                            [_handler:sqlDB:private] => 
                                            [_res:sqlDB:private] => 
                                            [_req] => 
                                            [_fetched:sqlDB:private] => 
                                            [_curr_line:sqlDB:private] => 0
                                            [_error:sqlDB:private] => errorClass Object
                                                (
                                                    [_fichier:errorClass:private] => /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php
                                                    [_ligne:errorClass:private] => 132
                                                    [_objContext:errorClass:private] => sqlDB Object
 *RECURSION*
                                                    [_message:errorClass:private] => Erreur de connexion à la BDD
                                                )

                                        )

                                    [_modules] => Modules Object
                                        (
                                            [_root_modules] => modules/
                                            [_mods] => Array
                                                (
                                                    [0] => Actualites
                                                    [1] => Agenda
                                                    [2] => Annuaires
                                                    [3] => Cartes
                                                    [4] => Contact
                                                    [5] => Droits
                                                    [6] => FlashInfos
                                                    [7] => FluxRSS
                                                    [8] => Galeries
                                                    [9] => Geographie
                                                    [10] => Langs
                                                    [11] => LiensRef
                                                    [12] => ListeLiens
                                                    [13] => Mailing
                                                    [14] => Main
                                                    [15] => Menu
                                                    [16] => Pages
                                                    [17] => Panneaux
                                                    [18] => Parallax
                                                    [19] => Partenaires
                                                    [20] => Plans
                                                    [21] => Prestations
                                                    [22] => Produits
                                                    [23] => Realisations
                                                    [24] => Referencement
                                                    [25] => ReseauxSociaux
                                                    [26] => Reservations
                                                    [27] => Slider
                                                    [28] => Temoignages
                                                    [29] => Tests
                                                )

                                            [_modulo] => Modulo Object
 *RECURSION*
                                            [_nb] => 30
                                            [url_repo:Modules:private] => http://modulol.pyreweb.com/getamodule.php
                                        )

                                    [_modules_charges] => Array
                                        (
                                        )

                                    [_modules_root] => modules/
                                    [_chaines] => chaines Object
                                        (
                                        )

                                    [_horloge] => horloge Object
                                        (
                                            [_format] => d/m/Y H:i:s
                                            [_tab] => Array
                                                (
                                                    [seconds] => 23
                                                    [minutes] => 24
                                                    [hours] => 16
                                                    [mday] => 4
                                                    [wday] => 1
                                                    [mon] => 7
                                                    [year] => 2022
                                                    [yday] => 184
                                                    [weekday] => Monday
                                                    [month] => July
                                                    [0] => 1656944663
                                                )

                                            [_datetime] => 
                                        )

                                    [_lien] => Lien Object
                                        (
                                            [_module] => 
                                            [_id] => 
                                            [_titre] => 
                                            [_numpage] => 
                                            [_objet] => 
                                            [_action] => 
                                            [_type] => 
                                            [_id2] => 
                                            [_id3] => 
                                            [_option] => 
                                            [_param] => 
                                            [_admin] => 
                                        )

                                )

                            [2] => Main
                        )

                )

            [3] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/core/modulo.class.php
                    [line] => 305
                    [function] => __construct
                    [class] => Main
                    [type] => ->
                    [args] => Array
                        (
                            [0] => modules/Main/
                            [1] => Modulo Object
                                (
                                    [_dbConnexion] => sqlDB Object
                                        (
                                            [_config:sqlDB:private] => Array
                                                (
                                                    [user] => golfluchon
                                                    [pwd] => uu49V%f87cWzr36#
                                                    [db_name] => golfluchon_dev
                                                    [server] => localhost
                                                    [type_db] => mysql
                                                )

                                            [_pdo:sqlDB:private] => 1
                                            [_handler:sqlDB:private] => 
                                            [_res:sqlDB:private] => 
                                            [_req] => 
                                            [_fetched:sqlDB:private] => 
                                            [_curr_line:sqlDB:private] => 0
                                            [_error:sqlDB:private] => errorClass Object
                                                (
                                                    [_fichier:errorClass:private] => /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php
                                                    [_ligne:errorClass:private] => 132
                                                    [_objContext:errorClass:private] => sqlDB Object
 *RECURSION*
                                                    [_message:errorClass:private] => Erreur de connexion à la BDD
                                                )

                                        )

                                    [_modules] => Modules Object
                                        (
                                            [_root_modules] => modules/
                                            [_mods] => Array
                                                (
                                                    [0] => Actualites
                                                    [1] => Agenda
                                                    [2] => Annuaires
                                                    [3] => Cartes
                                                    [4] => Contact
                                                    [5] => Droits
                                                    [6] => FlashInfos
                                                    [7] => FluxRSS
                                                    [8] => Galeries
                                                    [9] => Geographie
                                                    [10] => Langs
                                                    [11] => LiensRef
                                                    [12] => ListeLiens
                                                    [13] => Mailing
                                                    [14] => Main
                                                    [15] => Menu
                                                    [16] => Pages
                                                    [17] => Panneaux
                                                    [18] => Parallax
                                                    [19] => Partenaires
                                                    [20] => Plans
                                                    [21] => Prestations
                                                    [22] => Produits
                                                    [23] => Realisations
                                                    [24] => Referencement
                                                    [25] => ReseauxSociaux
                                                    [26] => Reservations
                                                    [27] => Slider
                                                    [28] => Temoignages
                                                    [29] => Tests
                                                )

                                            [_modulo] => Modulo Object
 *RECURSION*
                                            [_nb] => 30
                                            [url_repo:Modules:private] => http://modulol.pyreweb.com/getamodule.php
                                        )

                                    [_modules_charges] => Array
                                        (
                                        )

                                    [_modules_root] => modules/
                                    [_chaines] => chaines Object
                                        (
                                        )

                                    [_horloge] => horloge Object
                                        (
                                            [_format] => d/m/Y H:i:s
                                            [_tab] => Array
                                                (
                                                    [seconds] => 23
                                                    [minutes] => 24
                                                    [hours] => 16
                                                    [mday] => 4
                                                    [wday] => 1
                                                    [mon] => 7
                                                    [year] => 2022
                                                    [yday] => 184
                                                    [weekday] => Monday
                                                    [month] => July
                                                    [0] => 1656944663
                                                )

                                            [_datetime] => 
                                        )

                                    [_lien] => Lien Object
                                        (
                                            [_module] => 
                                            [_id] => 
                                            [_titre] => 
                                            [_numpage] => 
                                            [_objet] => 
                                            [_action] => 
                                            [_type] => 
                                            [_id2] => 
                                            [_id3] => 
                                            [_option] => 
                                            [_param] => 
                                            [_admin] => 
                                        )

                                )

                        )

                )

            [4] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/includes/headers.php
                    [line] => 10
                    [function] => load_module
                    [class] => Modulo
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Main
                        )

                )

            [5] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/index.php
                    [line] => 2
                    [args] => Array
                        (
                            [0] => /var/www/vhosts/golf-luchon.net/new/includes/headers.php
                        )

                    [function] => include
                )

        )

    [previous:Exception:private] => 
    [errorInfo] => 
)

 Contexte : 
sqlDB Object
(
    [_config:sqlDB:private] => Array
        (
            [user] => golfluchon
            [pwd] => uu49V%f87cWzr36#
            [db_name] => golfluchon_dev
            [server] => localhost
            [type_db] => mysql
        )

    [_pdo:sqlDB:private] => 1
    [_handler:sqlDB:private] => 
    [_res:sqlDB:private] => 
    [_req] => 
    [_fetched:sqlDB:private] => 
    [_curr_line:sqlDB:private] => 0
    [_error:sqlDB:private] => errorClass Object
        (
            [_fichier:errorClass:private] => /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php
            [_ligne:errorClass:private] => 132
            [_objContext:errorClass:private] => sqlDB Object
 *RECURSION*
            [_message:errorClass:private] => 
        )

)

 Dans : /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php:132
Erreur de connexion à la BDD

PDO FAIL : SQLSTATE[HY000] [2002] Connection refused

En cours : 
PDOException Object
(
    [message:protected] => SQLSTATE[HY000] [2002] Connection refused
    [string:Exception:private] => 
    [code:protected] => 2002
    [file:protected] => /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php
    [line:protected] => 127
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php
                    [line] => 127
                    [function] => __construct
                    [class] => PDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => mysql:dbname=golfluchon_dev;host=localhost
                            [1] => golfluchon
                            [2] => uu49V%f87cWzr36#
                        )

                )

            [1] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/class/objets/objetModulo.class.php
                    [line] => 214
                    [function] => __construct
                    [class] => sqlDB
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [2] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/core/module.class.php
                    [line] => 376
                    [function] => __construct
                    [class] => ObjetModulo
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [3] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/core/modulo.class.php(135) : eval()'d code
                    [line] => 12
                    [function] => define_config
                    [class] => Module
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [4] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/core/modulo.class.php
                    [line] => 305
                    [function] => __construct
                    [class] => Main
                    [type] => ->
                    [args] => Array
                        (
                            [0] => modules/Main/
                            [1] => Modulo Object
                                (
                                    [_dbConnexion] => sqlDB Object
                                        (
                                            [_config:sqlDB:private] => Array
                                                (
                                                    [user] => golfluchon
                                                    [pwd] => uu49V%f87cWzr36#
                                                    [db_name] => golfluchon_dev
                                                    [server] => localhost
                                                    [type_db] => mysql
                                                )

                                            [_pdo:sqlDB:private] => 1
                                            [_handler:sqlDB:private] => 
                                            [_res:sqlDB:private] => 
                                            [_req] => 
                                            [_fetched:sqlDB:private] => 
                                            [_curr_line:sqlDB:private] => 0
                                            [_error:sqlDB:private] => errorClass Object
                                                (
                                                    [_fichier:errorClass:private] => /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php
                                                    [_ligne:errorClass:private] => 132
                                                    [_objContext:errorClass:private] => sqlDB Object
 *RECURSION*
                                                    [_message:errorClass:private] => Erreur de connexion à la BDD
                                                )

                                        )

                                    [_modules] => Modules Object
                                        (
                                            [_root_modules] => modules/
                                            [_mods] => Array
                                                (
                                                    [0] => Actualites
                                                    [1] => Agenda
                                                    [2] => Annuaires
                                                    [3] => Cartes
                                                    [4] => Contact
                                                    [5] => Droits
                                                    [6] => FlashInfos
                                                    [7] => FluxRSS
                                                    [8] => Galeries
                                                    [9] => Geographie
                                                    [10] => Langs
                                                    [11] => LiensRef
                                                    [12] => ListeLiens
                                                    [13] => Mailing
                                                    [14] => Main
                                                    [15] => Menu
                                                    [16] => Pages
                                                    [17] => Panneaux
                                                    [18] => Parallax
                                                    [19] => Partenaires
                                                    [20] => Plans
                                                    [21] => Prestations
                                                    [22] => Produits
                                                    [23] => Realisations
                                                    [24] => Referencement
                                                    [25] => ReseauxSociaux
                                                    [26] => Reservations
                                                    [27] => Slider
                                                    [28] => Temoignages
                                                    [29] => Tests
                                                )

                                            [_modulo] => Modulo Object
 *RECURSION*
                                            [_nb] => 30
                                            [url_repo:Modules:private] => http://modulol.pyreweb.com/getamodule.php
                                        )

                                    [_modules_charges] => Array
                                        (
                                        )

                                    [_modules_root] => modules/
                                    [_chaines] => chaines Object
                                        (
                                        )

                                    [_horloge] => horloge Object
                                        (
                                            [_format] => d/m/Y H:i:s
                                            [_tab] => Array
                                                (
                                                    [seconds] => 23
                                                    [minutes] => 24
                                                    [hours] => 16
                                                    [mday] => 4
                                                    [wday] => 1
                                                    [mon] => 7
                                                    [year] => 2022
                                                    [yday] => 184
                                                    [weekday] => Monday
                                                    [month] => July
                                                    [0] => 1656944663
                                                )

                                            [_datetime] => 
                                        )

                                    [_lien] => Lien Object
                                        (
                                            [_module] => 
                                            [_id] => 
                                            [_titre] => 
                                            [_numpage] => 
                                            [_objet] => 
                                            [_action] => 
                                            [_type] => 
                                            [_id2] => 
                                            [_id3] => 
                                            [_option] => 
                                            [_param] => 
                                            [_admin] => 
                                        )

                                )

                        )

                )

            [5] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/includes/headers.php
                    [line] => 10
                    [function] => load_module
                    [class] => Modulo
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Main
                        )

                )

            [6] => Array
                (
                    [file] => /var/www/vhosts/golf-luchon.net/new/index.php
                    [line] => 2
                    [args] => Array
                        (
                            [0] => /var/www/vhosts/golf-luchon.net/new/includes/headers.php
                        )

                    [function] => include
                )

        )

    [previous:Exception:private] => 
    [errorInfo] => 
)

 Contexte : 
sqlDB Object
(
    [_config:sqlDB:private] => Array
        (
            [user] => golfluchon
            [pwd] => uu49V%f87cWzr36#
            [db_name] => golfluchon_dev
            [server] => localhost
            [type_db] => mysql
        )

    [_pdo:sqlDB:private] => 1
    [_handler:sqlDB:private] => 
    [_res:sqlDB:private] => 
    [_req] => 
    [_fetched:sqlDB:private] => 
    [_curr_line:sqlDB:private] => 0
    [_error:sqlDB:private] => errorClass Object
        (
            [_fichier:errorClass:private] => /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php
            [_ligne:errorClass:private] => 132
            [_objContext:errorClass:private] => sqlDB Object
 *RECURSION*
            [_message:errorClass:private] => 
        )

)

 Dans : /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php:132
Erreur de connexion à la BDD
Fatal error: Call to a member function query() on boolean in /var/www/vhosts/golf-luchon.net/new/core/sqlDB.class.php on line 196