mysql stops working after import I've been running into problems whenever I'm importing a .sql file into my database running locally. After the import, no matter how large the DB was (last one was only 800kb), I'm signed out of phpmyadmin and MySQL stops working. The only way I know of to resolve this at this moment is to run the install process again for MySQL. After that everything is working fine again but it is driving me crazy. Especially if I have to do this multiple times each day. Anyone who know what's going on and how to prevent this?

To be more exact, this is what I get from applications running this database: 


  MySQL server has gone away
try this:

[mysqld]  # THIS LINE ALREADY EXISTS – DO NOT ADD  THIS. Just ADD the line below.

max_allowed_packet=500M


and restart the MySQL Server.