Drupal gives error while add content or edit node
One possibility to solve is to increase "max_allowed_packet" .


    Go to xampp\mysql\bin
    Open my.ini
    Change "max_allowed_packet" from "1m" to "16m"
    Save my.ini
    Now restart MySql through the XAMPP control panel.



Or

settings.php

ini_set('max_allowed_packet', '1024M');