Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-2278

Civicrm Database Error Code: Lost connection to MySQL server during query, 2013

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When checking the CiviCRM system I'm running today I came across this error when I try to access the CiviCRM Home. I see that there is a Lost connection to the MySQL during a query. Now the database is corrupt. Is their any way to fix this? Any help would be extremely appreciated.

      CiviCRM Home

      • user warning: MySQL server has gone away query: SELECT * FROM system WHERE type = 'theme' in /usr/local/htdocs.playground/drupal/includes/database.mysql.inc on line 172.
      • user warning: MySQL server has gone away query: SELECT DISTINCT b.* FROM blocks b LEFT JOIN blocks_roles r ON b.module = r.module AND b.delta = r.delta WHERE b.theme = 'garland' AND b.status = 1 AND (r.rid IN (2) OR r.rid IS NULL) ORDER BY b.region, b.weight, b.module in /usr/local/htdocs.playground/drupal/includes/database.mysql.inc on line 172.

      unrecoverable error
      Sorry. A non-recoverable error has occurred.

      Database Error Code: Lost connection to MySQL server during query, 2013

      Return to CiviCRM menu.

      Error Details:

      Array
      (
      [callback] => Array
      (
      [0] => CRM_Core_Error
      [1] => handle
      )

      [code] => -1
      [message] => DB Error: unknown error
      [mode] => 16
      [debug_info] => SELECT count FROM civicrm_meeting
      WHERE ( civicrm_meeting.target_entity_table = 'civicrm_contact' AND target_entity_id = 102 OR source_contact_id = 102 )
      AND status != 'Completed' [nativecode=2013 ** Lost connection to MySQL server during query]
      [type] => DB_Error
      [user_info] => SELECT count FROM civicrm_meeting
      WHERE ( civicrm_meeting.target_entity_table = 'civicrm_contact' AND target_entity_id = 102 OR source_contact_id = 102 )
      AND status != 'Completed' [nativecode=2013 ** Lost connection to MySQL server during query]
      [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT count FROM civicrm_meeting
      WHERE ( civicrm_meeting.target_entity_table = 'civicrm_contact' AND target_entity_id = 102 OR source_contact_id = 102 )
      AND status != 'Completed' [nativecode=2013 ** Lost connection to MySQL server during query]"]
      )

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              suzuki16 Chris Anuszewski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: