( ! ) Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Database/Driver.php:132 Stack trace: #0 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Database/Driver.php(132): PDO->__construct() #1 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php(70): Cake\Database\Driver->Cake\Database\{closure}() #2 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Database/Driver.php(142): Cake\Core\Retry\CommandRetry->run() #3 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Database/Driver/Mysql.php(165): Cake\Database\Driver->_connect() #4 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Database/Schema/SchemaDialect.php(51): Cake\Database\Driver\Mysql->connect() #5 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Database/Driver/Mysql.php(217): Cake\Database\Schema\SchemaDialect->__construct() #6 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Database/Schema/Collection.php(53): Cake\Database\Driver\Mysql->schemaDialect() #7 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Database/Connection.php(542): Cake\Database\Schema\Collection->__construct() #8 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/ORM/Table.php(527): Cake\Database\Connection->getSchemaCollection() #9 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/ORM/Query.php(309): Cake\ORM\Table->getSchema() #10 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/ORM/Query.php(185): Cake\ORM\Query->addDefaultTypes() #11 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/ORM/Table.php(1763): Cake\ORM\Query->__construct() #12 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/ORM/Table.php(1281): Cake\ORM\Table->selectQuery() #13 /var/www/_nxlead/master/src/Model/Table/SystemSettingsTable.php(115): Cake\ORM\Table->find() #14 /var/www/_nxlead/master/config/bootstrap.php(268): SystemOne\Model\Table\SystemSettingsTable->getAllSettings() #15 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Http/BaseApplication.php(174): require_once('...') #16 /var/www/_nxlead/master/src/Application.php(100): Cake\Http\BaseApplication->bootstrap() #17 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Http/Server.php(118): SystemOne\Application->bootstrap() #18 /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Http/Server.php(80): Cake\Http\Server->bootstrap() #19 /var/www/_nxlead/master/public/index.php(60): Cake\Http\Server->run() #20 {main} Next Cake\Database\Exception\MissingConnectionException: Connection to Mysql could not be established: SQLSTATE[HY000] [2002] Connection refused in /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Database/Driver.php on line 144
( ! ) Cake\Database\Exception\MissingConnectionException: Connection to Mysql could not be established: SQLSTATE[HY000] [2002] Connection refused in /var/www/_nxlead/master/vendor/cakephp/cakephp/src/Database/Driver.php on line 144
Call Stack
#TimeMemoryFunctionLocation
10.0002468232{main}( ).../index.php:0
20.0050624208Cake\Http\Server->run( $request = ???, $middlewareQueue = ??? ).../index.php:60
30.0050624208Cake\Http\Server->bootstrap( ).../Server.php:80
40.0050624208SystemOne\Application->bootstrap( ).../Server.php:118
50.0051625280Cake\Http\BaseApplication->bootstrap( ).../Application.php:100
60.0052626960require_once( '/var/www/_nxlead/master/config/bootstrap.php ).../BaseApplication.php:174
70.08481035536SystemOne\Model\Table\SystemSettingsTable->getAllSettings( ).../bootstrap.php:268
80.08481035536Cake\ORM\Table->find( $type = ???, $options = ??? ).../SystemSettingsTable.php:115
90.08481035536Cake\ORM\Table->selectQuery( ).../Table.php:1281
100.08511038592Cake\ORM\Query->__construct( $connection = class Cake\Database\Connection { protected $_config = ['driver' => 'Cake\\Database\\Driver\\Mysql', 'persistent' => TRUE, 'quoteIdentifiers' => TRUE, 'host' => 'localhost', 'login' => 'staging', 'username' => 'staging', 'password' => 'hj2p9Wq7G4Zecoye', 'database' => 'mikeoddo_master', 'cacheMetadata' => TRUE, 'prefix' => '', 'log' => '1', 'name' => 'default']; protected Cake\Database\DriverInterface $readDriver = class Cake\Database\Driver\Mysql { protected $_connection = NULL; protected $_config = [...]; protected $_baseConfig = [...]; protected $_autoQuoting = TRUE; protected $_version = NULL; protected $connectRetries = 0; protected $_schemaDialect = NULL; protected $_startQuote = '`'; protected $_endQuote = '`'; protected $serverType = 'mysql'; protected $featureVersions = [...] }; protected Cake\Database\DriverInterface $writeDriver = class Cake\Database\Driver\Mysql { protected $_connection = NULL; protected $_config = [...]; protected $_baseConfig = [...]; protected $_autoQuoting = TRUE; protected $_version = NULL; protected $connectRetries = 0; protected $_schemaDialect = NULL; protected $_startQuote = '`'; protected $_endQuote = '`'; protected $serverType = 'mysql'; protected $featureVersions = [...] }; protected $_transactionLevel = 0; protected $_transactionStarted = FALSE; protected $_useSavePoints = FALSE; protected $_logQueries = TRUE; protected $_logger = NULL; protected $cacher = NULL; protected $_schemaCollection = NULL; protected $nestedTransactionRollbackException = NULL }, $table = class SystemOne\Model\Table\SystemSettingsTable { protected $_table = 'systemSettings'; protected $_alias = 'SystemSettings'; protected $_connection = class Cake\Database\Connection { protected $_config = [...]; protected Cake\Database\DriverInterface $readDriver = class Cake\Database\Driver\Mysql { ... }; protected Cake\Database\DriverInterface $writeDriver = class Cake\Database\Driver\Mysql { ... }; protected $_transactionLevel = 0; protected $_transactionStarted = FALSE; protected $_useSavePoints = FALSE; protected $_logQueries = TRUE; protected $_logger = NULL; protected $cacher = NULL; protected $_schemaCollection = NULL; protected $nestedTransactionRollbackException = NULL }; protected $_schema = NULL; protected $_primaryKey = 'id'; protected $_displayField = 'name'; protected $_associations = class Cake\ORM\AssociationCollection { protected $_items = [...]; protected $defaultTable = NULL; protected $_tableLocator = NULL }; protected $_behaviors = class Cake\ORM\BehaviorRegistry { protected $_loaded = [...]; protected $_table = ...; protected $_methodMap = [...]; protected $_finderMap = [...]; protected $_eventManager = class Cake\Event\EventManager { ... }; protected $_eventClass = 'Cake\\Event\\Event' }; protected $_entityClass = NULL; protected $_registryAlias = NULL; protected $_eventManager = class Cake\Event\EventManager { protected $_listeners = [...]; protected $_isGlobal = FALSE; protected $_eventList = NULL; protected $_trackEvents = FALSE }; protected $_eventClass = 'Cake\\Event\\Event'; protected $_rulesChecker = NULL; protected $_validatorClass = 'Cake\\Validation\\Validator'; protected $_validators = [] } ).../Table.php:1763
110.08521038592Cake\ORM\Query->addDefaultTypes( $table = class SystemOne\Model\Table\SystemSettingsTable { protected $_table = 'systemSettings'; protected $_alias = 'SystemSettings'; protected $_connection = class Cake\Database\Connection { protected $_config = [...]; protected Cake\Database\DriverInterface $readDriver = class Cake\Database\Driver\Mysql { ... }; protected Cake\Database\DriverInterface $writeDriver = class Cake\Database\Driver\Mysql { ... }; protected $_transactionLevel = 0; protected $_transactionStarted = FALSE; protected $_useSavePoints = FALSE; protected $_logQueries = TRUE; protected $_logger = NULL; protected $cacher = NULL; protected $_schemaCollection = NULL; protected $nestedTransactionRollbackException = NULL }; protected $_schema = NULL; protected $_primaryKey = 'id'; protected $_displayField = 'name'; protected $_associations = class Cake\ORM\AssociationCollection { protected $_items = [...]; protected $defaultTable = NULL; protected $_tableLocator = NULL }; protected $_behaviors = class Cake\ORM\BehaviorRegistry { protected $_loaded = [...]; protected $_table = ...; protected $_methodMap = [...]; protected $_finderMap = [...]; protected $_eventManager = class Cake\Event\EventManager { ... }; protected $_eventClass = 'Cake\\Event\\Event' }; protected $_entityClass = NULL; protected $_registryAlias = NULL; protected $_eventManager = class Cake\Event\EventManager { protected $_listeners = [...]; protected $_isGlobal = FALSE; protected $_eventList = NULL; protected $_trackEvents = FALSE }; protected $_eventClass = 'Cake\\Event\\Event'; protected $_rulesChecker = NULL; protected $_validatorClass = 'Cake\\Validation\\Validator'; protected $_validators = [] } ).../Query.php:185
120.08521038632Cake\ORM\Table->getSchema( ).../Query.php:309
130.08521038632Cake\Database\Connection->getSchemaCollection( ).../Table.php:527
140.08521038808Cake\Database\Schema\Collection->__construct( $connection = class Cake\Database\Connection { protected $_config = ['driver' => 'Cake\\Database\\Driver\\Mysql', 'persistent' => TRUE, 'quoteIdentifiers' => TRUE, 'host' => 'localhost', 'login' => 'staging', 'username' => 'staging', 'password' => 'hj2p9Wq7G4Zecoye', 'database' => 'mikeoddo_master', 'cacheMetadata' => TRUE, 'prefix' => '', 'log' => '1', 'name' => 'default']; protected Cake\Database\DriverInterface $readDriver = class Cake\Database\Driver\Mysql { protected $_connection = NULL; protected $_config = [...]; protected $_baseConfig = [...]; protected $_autoQuoting = TRUE; protected $_version = NULL; protected $connectRetries = 0; protected $_schemaDialect = NULL; protected $_startQuote = '`'; protected $_endQuote = '`'; protected $serverType = 'mysql'; protected $featureVersions = [...] }; protected Cake\Database\DriverInterface $writeDriver = class Cake\Database\Driver\Mysql { protected $_connection = NULL; protected $_config = [...]; protected $_baseConfig = [...]; protected $_autoQuoting = TRUE; protected $_version = NULL; protected $connectRetries = 0; protected $_schemaDialect = NULL; protected $_startQuote = '`'; protected $_endQuote = '`'; protected $serverType = 'mysql'; protected $featureVersions = [...] }; protected $_transactionLevel = 0; protected $_transactionStarted = FALSE; protected $_useSavePoints = FALSE; protected $_logQueries = TRUE; protected $_logger = NULL; protected $cacher = NULL; protected $_schemaCollection = NULL; protected $nestedTransactionRollbackException = NULL } ).../Connection.php:542
150.08521038808Cake\Database\Driver\Mysql->schemaDialect( ).../Collection.php:53
160.08531039008Cake\Database\Schema\SchemaDialect->__construct( $driver = class Cake\Database\Driver\Mysql { protected $_connection = NULL; protected $_config = ['_role' => 'write', 'persistent' => TRUE, 'quoteIdentifiers' => TRUE, 'host' => 'localhost', 'login' => 'staging', 'username' => 'staging', 'password' => 'hj2p9Wq7G4Zecoye', 'database' => 'mikeoddo_master', 'cacheMetadata' => TRUE, 'prefix' => '', 'port' => '3306', 'flags' => [...], 'encoding' => 'utf8mb4', 'timezone' => NULL, 'init' => [...]]; protected $_baseConfig = ['persistent' => TRUE, 'host' => 'localhost', 'username' => 'root', 'password' => '', 'database' => 'cake', 'port' => '3306', 'flags' => [...], 'encoding' => 'utf8mb4', 'timezone' => NULL, 'init' => [...]]; protected $_autoQuoting = TRUE; protected $_version = NULL; protected $connectRetries = 0; protected $_schemaDialect = NULL; protected $_startQuote = '`'; protected $_endQuote = '`'; protected $serverType = 'mysql'; protected $featureVersions = ['mysql' => [...], 'mariadb' => [...]] } ).../Mysql.php:217
170.08531039008Cake\Database\Driver\Mysql->connect( ).../SchemaDialect.php:51
180.08531040176Cake\Database\Driver->_connect( $dsn = 'mysql:host=localhost;port=3306;dbname=mikeoddo_master;charset=utf8mb4', $config = ['_role' => 'write', 'persistent' => TRUE, 'quoteIdentifiers' => TRUE, 'host' => 'localhost', 'login' => 'staging', 'username' => 'staging', 'password' => 'hj2p9Wq7G4Zecoye', 'database' => 'mikeoddo_master', 'cacheMetadata' => TRUE, 'prefix' => '', 'port' => '3306', 'flags' => [12 => TRUE, 1000 => TRUE, 3 => 2], 'encoding' => 'utf8mb4', 'timezone' => NULL, 'init' => []] ).../Mysql.php:165