A PHP Error was encountered

Severity: Warning

Message: mysqli::real_connect(): (HY000/2002): Connection refused

Filename: mysqli/mysqli_driver.php

Line Number: 201

Backtrace:

File: /var/www/html/toyota/toyotaapruebadedakar/vendor/chriskacerguis/codeigniter-restserver/application/libraries/REST_Controller.php
Line: 392
Function: __construct

File: /var/www/html/toyota/toyotaapruebadedakar/application/core/MY_Controller.php
Line: 49
Function: __construct

File: /var/www/html/toyota/toyotaapruebadedakar/application/controllers/Noticias.php
Line: 8
Function: __construct

File: /var/www/html/toyota/toyotaapruebadedakar/index.php
Line: 317
Function: require_once

An uncaught Exception was encountered

Type: Illuminate\Database\QueryException

Message: SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `dakar2018_news` where `state` = 1 order by `created_at` desc)

Filename: /var/www/html/toyota/toyotaapruebadedakar/vendor/illuminate/database/Connection.php

Line Number: 647

Backtrace:

File: /var/www/html/toyota/toyotaapruebadedakar/vendor/illuminate/database/Connection.php
Line: 607
Function: runQueryCallback

File: /var/www/html/toyota/toyotaapruebadedakar/vendor/illuminate/database/Connection.php
Line: 326
Function: run

File: /var/www/html/toyota/toyotaapruebadedakar/vendor/illuminate/database/Query/Builder.php
Line: 1706
Function: select

File: /var/www/html/toyota/toyotaapruebadedakar/vendor/illuminate/database/Query/Builder.php
Line: 1690
Function: runSelect

File: /var/www/html/toyota/toyotaapruebadedakar/vendor/illuminate/database/Eloquent/Builder.php
Line: 462
Function: get

File: /var/www/html/toyota/toyotaapruebadedakar/vendor/illuminate/database/Eloquent/Builder.php
Line: 446
Function: getModels

File: /var/www/html/toyota/toyotaapruebadedakar/application/controllers/Noticias.php
Line: 13
Function: get

File: /var/www/html/toyota/toyotaapruebadedakar/vendor/chriskacerguis/codeigniter-restserver/application/libraries/REST_Controller.php
Line: 793
Function: call_user_func_array

File: /var/www/html/toyota/toyotaapruebadedakar/index.php
Line: 317
Function: require_once