Warning: MySQL server has gone away query:INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname,

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


How to handle this error:

Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp)

VALUES (1, 'php', '<em>MySQL server has gone away\nquery: UPDATE cache SET data =&amp;#039;a:4....

in C:\xampp\htdocs\studentindia\includes\database.mysql.inc on line 172

Solution:

The error is because max packet allowed by mysql has been exceeded.You need to change it.This generally happens whan the table size becomes very large. Therefore, do the following to solve it:

i) Go to xampp\mysql\bin

ii) open my.cnf

iii)change the Max packet Allowed = 64M instead of 8M.

 

                                     
-1 points

Try this... http://drupal.org/node/227445#comment-770663

Anonymous's picture
Created by Anonymous

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.