Warning: MySQL server has gone away query

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


10 points

I am getting the following error when connecting my drupal application to mysql.

<?php
Warning
MySQL server has gone away queryINSERT INTO watchdog (uidtypemessageseveritylinklocationrefererhostnametimestamp)

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

in C:xampphtdocsstudentindiaincludesdatabase.mysql.inc on line 172
?>

What does this mean?



2 points

You can check for this error here: Warning: MySQL server has gone away query watchdog

Anonymous's picture
Created by Anonymous
6 points

Restart your mysql server and it would solve.

Anonymous's picture
Created by Anonymous
-1 points

Increase your max packet size in your mysql configuration file (which is my.cnf) and restart mysql server. That would work.

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 <% ... %>.