CodeIgniter Forums
"mysqli::real_connect() Too many connections" after migration to CI3 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: "mysqli::real_connect() Too many connections" after migration to CI3 (/showthread.php?tid=683)



"mysqli::real_connect() Too many connections" after migration to CI3 - thomas - 01-05-2015

Hello,

I try to migrate my project from CI2.2 to CI3.0 and I get a DB error when I load a page :

Code:
mysqli::real_connect(): (HY000/1040): Too many connections

It appears when I set autoinit=TRUE to a database.

Did you already have this problem ?


RE: "mysqli::real_connect() Too many connections" after migration to CI3 - Jamie - 01-06-2015

I've previously experienced this problem whilst using a shared hosting plan... literally too many connections to the MySQL server. This doesn't necessarily always related to just your hosting account but others also using it.

Have you tried the page since, are you still getting the same error?

Take a look at the MySQL FAQ: http://dev.mysql.com/doc/refman/5.5/en/too-many-connections.html