Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/html/app/Core/Database.php:12
Stack trace:
#0 /var/www/html/app/Core/Database.php(12): PDO->__construct()
#1 /var/www/html/app/Core/Database.php(18): Models\Post->connect()
#2 /var/www/html/app/Core/Abstracts/Cruds.php(26): Models\Post->query()
#3 /var/www/html/app/Controllers/Home.php(35): Models\Post->findAll()
#4 [internal function]: Controllers\Home->index()
#5 /var/www/html/app/Core/Router.php(256): call_user_func_array()
#6 /var/www/html/app/Core/helpers/init.php(30): Core\Router->loadController()
#7 /var/www/html/public/index.php(5): require('...')
#8 {main}
thrown in /var/www/html/app/Core/Database.php on line 12