I'll try to be brief and to the point.
'pconnect' = FALSE;
max_user_connections = 10
. Set by the Hosting company. mysql.allow_persistent = Off
to php.ini file. Message: mysqli::real_connect(): (42000/1203): User <user> already has more than 'max_user_connections' active connections Filename:mysqli/mysqli_driver.php Line Number: 201
Line 201
is calling mysqli::real_connect
within db_connect function of mysqli_driver With pconnect = FALSE;
and CI's "intelligent" closing of database connections, I don't see what should be causing the problem.
EDIT
$this->load->database('group', TRUE);
in each model (only one such call per model). $this->db->db_select('dbName');
in respective controllers+models but it's not always selecting the correct database when controller+model is loaded. db->db_select()
works? Any ideas would be great help. Thanks.
Check your database setting inside applications/config folder.
Somewhere you had mentioned mysql and somewhere mysqli.
Remember current version of CodeIgniter doesn't support mysql.
Hope it helps
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.