This parameter restricts the size of data affected by a single insert or update statement. If you try to upload a 1MB jpg picture to your db, but your max_allowed_packet is set to 512KB then the attempt will fail. Set this parameter to the largest possible insert/update size (or to the largest WANTED insert/update size).