Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/function/database.php:27 Stack trace: #0 /var/www/html/function/database.php(27): PDO->__construct() #1 /var/www/html/function/product.php(10): getDB() #2 /var/www/html/actions/index/index.php(4): getAllProducts() #3 /var/www/html/routes.php(236): require_once('...') #4 /var/www/html/function/utilities.php(212): {closure}() #5 /var/www/html/routes.php(256): router() #6 /var/www/html/includes.php(34): require_once('...') #7 /var/www/html/index.php(29): require('...') #8 {main} thrown in /var/www/html/function/database.php on line 27