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

Submitted by pooni on Sat, 05/19/2007 - 19:55.
::

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.

 

0 points

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

Created by Anonymous

Post your Answer

  • Lines and paragraphs break automatically.
  • 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 <% ... %>.
  • Links to specified hosts will have a rel="nofollow" added to them.

More information about formatting options