Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter 3 Dev MySQL server has gone away

I am playing around with CodeIgniter 3 Dev and I keep getting this issue with MySQL.

mysqli::real_connect(): MySQL server has gone away

Anyone else playing with CI 3 and happened to run into this and found a fix?

My work is local using wamp with a remote connection into a mysql server. I tried changing

mysqli.reconnect = Off
mysqli.reconnect = On

but it still pops up after an hour or two.

This is a mysql issue, not CI. Google the error message, "MySQL server has gone away", and you will see several things to check and alter, if necessary.
It can be anything from not having the packet size large enough for the amount of data you are returning to the value you have wait_timeout set to. Those are the usual causes.

Hello, I ma having the same error with CI3.0 dev.
I am using Synology as a PHP/MySQL server.

For me this seems like CI issue, all other application served from the same server did not replicate the problem.

So far I did not find a solution, so will appreciate any help.

Theme © iAndrew 2016 - Forum software by © MyBB