Error connecting to database - check your database connection properties in constants.php file

SQLSTATE[HY000] [2002] Connection refused
PHP Version : 7.1.33

( ! ) Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/blackh46/public_html/blackhatlinks/members/admin/includes/Database.php:17) in /home/blackh46/public_html/blackhatlinks/members/admin/includes/Session.php on line 66
Call Stack
#TimeMemoryFunctionLocation
10.0067349256{main}( ).../buy_template.php:0
20.0082349840include( '/home/blackh46/public_html/blackhatlinks/members/admin/includes/controller.php' ).../buy_template.php:3
30.2005375976Session->__construct( ).../controller.php:28
40.2050382104Session->startSession( ).../Session.php:37
50.2050382104session_start ( ).../Session.php:66

( ! ) Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/blackh46/public_html/blackhatlinks/members/admin/includes/Database.php:17) in /home/blackh46/public_html/blackhatlinks/members/admin/includes/Session.php on line 66
Call Stack
#TimeMemoryFunctionLocation
10.0067349256{main}( ).../buy_template.php:0
20.0082349840include( '/home/blackh46/public_html/blackhatlinks/members/admin/includes/controller.php' ).../buy_template.php:3
30.2005375976Session->__construct( ).../controller.php:28
40.2050382104Session->startSession( ).../Session.php:37
50.2050382104session_start ( ).../Session.php:66

( ! ) Warning: PDO::prepare(): SQLSTATE[00000]: No error: PDO constructor was not called in /home/blackh46/public_html/blackhatlinks/members/admin/includes/Configs.php on line 15
Call Stack
#TimeMemoryFunctionLocation
10.0067349256{main}( ).../buy_template.php:0
20.0082349840include( '/home/blackh46/public_html/blackhatlinks/members/admin/includes/controller.php' ).../buy_template.php:3
30.2005375976Session->__construct( ).../controller.php:28
40.2050382104Session->startSession( ).../Session.php:37
50.2245384328Session->addActiveGuest( ).../Session.php:78
60.2245384328Configs->getConfig( ).../Session.php:542
70.2246384328prepare ( ).../Configs.php:15

( ! ) Fatal error: Uncaught Error: Call to a member function execute() on null in /home/blackh46/public_html/blackhatlinks/members/admin/includes/Configs.php on line 16
( ! ) Error: Call to a member function execute() on null in /home/blackh46/public_html/blackhatlinks/members/admin/includes/Configs.php on line 16
Call Stack
#TimeMemoryFunctionLocation
10.0067349256{main}( ).../buy_template.php:0
20.0082349840include( '/home/blackh46/public_html/blackhatlinks/members/admin/includes/controller.php' ).../buy_template.php:3
30.2005375976Session->__construct( ).../controller.php:28
40.2050382104Session->startSession( ).../Session.php:37
50.2245384328Session->addActiveGuest( ).../Session.php:78
60.2245384328Configs->getConfig( ).../Session.php:542