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 ..