When sending an email with attachments in Sugar CRM, we have encountered the following error:Query Failed:INSERT into emails set id= ... ::MySQL error 2006: MySQL server has gone awayAlthough this error appeared in this application, others may find they have the same issue with other programs.Our Fix:1. Edit my.cnf2. Under [mysqld] we added:max_allowed_packet = 64MOthers suggest that you need to add:wait_timeout = 600We had no need to.Where do I find my.cnf?We found my.cnf in the /etc folder. Others may find it here:/etc/mysqld/How do I find files in linux?a) Method 11. Updatedb or Locate -u2. Locate filename.extb) Method 2find / -name "filename.txt"c) Method 3whereis myfile.txt