Uncaught exception thrown in shutdown function

This is some explaination:

1) The issue is with 'max_allowed_packet' just increase the limit to 16M

Here are the steps to do that

  1. Go to xampp\mysql\bin
  2. Open my.ini
  3. Change "max_allowed_packet" from "1m" to "16m" (or larger)
  4. Save my.ini Now restart MySql through the XAMPP control panel

Note: But this one for development, what about live server?

* Source: https://www.drupal.org/node/1537488 


2) "To solve this problem of Uncaught exception thrown in shutdown function, do the following:
Grant all mysql privileges to your database and the database user, it will work magic. Problem solved!

* Source: https://www.drupal.org/node/1308888