Fatal error: Uncaught [2002] - SQLSTATE[HY000] [2002] Connection refused
trace: #0 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Driver/RPDO.php(543): RedBeanPHP\Driver\RPDO->runQuery('SELECT \n ...', Array)
#1 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Adapter/DBAdapter.php(118): RedBeanPHP\Driver\RPDO->GetAll('SELECT \n ...', Array)
#2 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Facade.php(158): RedBeanPHP\Adapter\DBAdapter->get('SELECT \n ...', Array)
#3 /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Facade.php(1270): RedBeanPHP\Facade::query('get', 'SELECT \n ...', Array)
#4 /var/www/html/lib/CustomRedBeanFacade.php(17): RedBeanPHP\Facade::getAll('SELECT \n ...', Array)
#5 /var/www/html/site/models/Itens/ItemRepository.php(23): Lib\CustomRedBeanFacade::getAll('SELECT \n ...')
#6 /var/www/html/site/models/Itens/ItemRepository.php(179): Models\Itens\ItemRepository->generate()
#7 [internal function]: Models\Itens\ItemRepository->{closure:Models\Itens\ItemRepository::getData():178}()
#8 /var/www/html/lib/Cache.php(70): call_user_func(Object(Closure))
#9 /var/www/html/site/models/Itens/ItemRepository.php(176): Lib\Cache::get('Models\\Itens\\It...', Object(Closure), 120)
#10 /var/www/html/site/models/Itens/ItemRepository.php(365): Models\Itens\ItemRepository->getData()
#11 /var/www/html/site/models/Itens/ItemRepository.php(650): Models\Itens\ItemRepository->search(NULL, NULL, 'EQ208E', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'codigo', NULL, 1)
#12 /var/www/html/site/controllers/ProdutoController.php(27): Models\Itens\ItemRepository->searchOne(NULL, NULL, 'EQ208E')
#13 [internal function]: Controller\ProdutoController->IndexAction()
#14 /var/www/html/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Array, Array)
#15 /var/www/html/vendor/php-di/php-di/src/Container.php(251): Invoker\Invoker->call(Array, Array)
#16 /var/www/html/lib/Router.php(213): DI\Container->call(Array, Array)
#17 [internal function]: Lib\Router->init()
#18 /var/www/html/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array(Array, Array)
#19 /var/www/html/vendor/php-di/php-di/src/Container.php(251): Invoker\Invoker->call(Array, Array)
#20 /var/www/html/index.php(188): DI\Container->call(Array)
#21 {main}
thrown in /var/www/html/vendor/gabordemooij/redbean/RedBeanPHP/Driver/RPDO.php on line 206