I had the same problem, and I found that it was just a matter of changing the settings:
Change the database.php configuration file and change 'pconnect' to false. Within the CI 3 Framework, it will be part of this array:
$db['default'] = array( 'pconnect' => FALSE
Or, if your configuration file is more like CI version 2:
$db['default']['pconnect'] = FALSE;
The search bit seems to indicate that the database does not like a persistent connection, possibly due to security concerns.
source share