| ( ! ) 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 |
| # | Time | Memory | Function | Location |
| 1 | 0.0000 | 468232 | {main}( ) | .../index.php:0 |
| 2 | 0.0026 | 624208 | Cake\Http\Server->run( $request = ???, $middlewareQueue = ??? ) | .../index.php:60 |
| 3 | 0.0026 | 624208 | Cake\Http\Server->bootstrap( ) | .../Server.php:80 |
| 4 | 0.0026 | 624208 | SystemOne\Application->bootstrap( ) | .../Server.php:118 |
| 5 | 0.0027 | 625280 | Cake\Http\BaseApplication->bootstrap( ) | .../Application.php:100 |
| 6 | 0.0027 | 626960 | require_once( '/var/www/_nxlead/master/config/bootstrap.php ) | .../BaseApplication.php:174 |
| 7 | 0.0832 | 1035536 | SystemOne\Model\Table\SystemSettingsTable->getAllSettings( ) | .../bootstrap.php:268 |
| 8 | 0.0832 | 1035536 | Cake\ORM\Table->find( $type = ???, $options = ??? ) | .../SystemSettingsTable.php:115 |
| 9 | 0.0832 | 1035536 | Cake\ORM\Table->selectQuery( ) | .../Table.php:1281 |
| 10 | 0.0834 | 1038592 | Cake\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 |
| 11 | 0.0834 | 1038592 | Cake\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 |
| 12 | 0.0834 | 1038632 | Cake\ORM\Table->getSchema( ) | .../Query.php:309 |
| 13 | 0.0834 | 1038632 | Cake\Database\Connection->getSchemaCollection( ) | .../Table.php:527 |
| 14 | 0.0835 | 1038808 | Cake\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 |
| 15 | 0.0835 | 1038808 | Cake\Database\Driver\Mysql->schemaDialect( ) | .../Collection.php:53 |
| 16 | 0.0835 | 1039008 | Cake\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 |
| 17 | 0.0835 | 1039008 | Cake\Database\Driver\Mysql->connect( ) | .../SchemaDialect.php:51 |
| 18 | 0.0835 | 1040176 | Cake\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 |