Linux · January 17, 2019 1

Fix magento Warning: Error while sending QUERY packet

You may encounter some error like below when installing magento with sample data

[ERROR] exception ‘Exception’ with message ‘Warning: Error while sending QUERY packet. PID=227012

Fix: That error is because of low max_allowed_packet  configuration in your php.ini file, open your local (project level) php.ini file and add following

For more info on magento level php.ini configuration file see here

max_allowed_packet = 100M

Save the file and try to install magento again.