[Solved] 2006: mysql server has gone away in XAMPP

well sometimes we faces some problem while uploading sql file by import in xampp. we got an error

“2006: mysql has server gone away” .. this is massage is shown when uploading a large file to the database server.


open your xampp control panel. click the “config” of mysql then click “my.ini” .. it will open with notepad/wordpad.

press “ctrl + F ” to open the search option … then search “max_allowed_packet” .

change it from 1M to 10M .. then “save” it .. and close.

restart apache, and mysql .. reload the uploading page … and enjoy ..



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s