I have moved my app from php 5.6 to php 7.2 because the dockerized version with xdebug was only avail in 7.2. Anyhow, I am getting this strange error. Is this due to the change from php 5.6 or due to some path error for the database or some problem with CI 3.11 and php 7.2? What should I look at first?
[docker://bitnami/php-fpm7:latest/]:php /opt/docker-substantiator/app/index.php
A PHP Error was encountered
Severity: Warning
Message: mysqli::real_connect(): (HY000/2002): Connection refused
Filename: /opt/docker-substantiator/app/system/database/drivers/mysqli/mysqli_driver.php
Line Number: 201
Backtrace:
File: /opt/docker-substantiator/app/application/core/MY_Loader.php
Line: 277
Function: database
File: /opt/docker-substantiator/app/application/controllers/Users.php
Line: 15
Function: __construct
File: /opt/docker-substantiator/app/index.php
Line: 317
Function: require_once
Database error: A Database Error Occurred
Unable to connect to your database server using the provided settings.
Filename: controllers/Users.php
Line Number: 15
Process finished with exit code 8
Now if I go look at line 15 in Users.php I see:
function __construct() {
parent::__construct(); << line 15
$this->load->library('form_validation');
$this->load->library('session');
$this->load->model('User');
$this->load->helper(array('form', 'url'));
$this->load->database();
$this->_init();
}
proof that an old dog can learn new tricks