Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2008
    Posts
    255
    Plugin Contributions
    0

    Default 2006 - MySQL server has gone away - Error trying to upload database

    I am trying to upload my database from local host to live site and have followed the instructions on moving databases.

    When I try to import the sql file into myphp on my live server, this is the error I get and then the import stops:

    SQL query:

    CREATE TABLE `admin_activity_log` (
    `log_id` int( 15 ) NOT NULL AUTO_INCREMENT ,
    `access_date` datetime NOT NULL default '0001-01-01 00:00:00',
    `admin_id` int( 11 ) NOT NULL default '0',
    `page_accessed` varchar( 80 ) COLLATE latin1_general_ci NOT NULL default '',
    `page_parameters` text COLLATE latin1_general_ci,
    `ip_address` varchar( 15 ) COLLATE latin1_general_ci NOT NULL default '',
    PRIMARY KEY ( `log_id` ) ,
    KEY `idx_page_accessed_zen` ( `page_accessed` ) ,
    KEY `idx_access_date_zen` ( `access_date` ) ,
    KEY `idx_ip_zen` ( `ip_address` )
    ) ENGINE = MYISAM DEFAULT CHARSET = latin1 COLLATE = latin1_general_ci AUTO_INCREMENT =7009;

    MySQL said: Documentation
    #2006 - MySQL server has gone away

    Anybody knows what I should do to??


  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: 2006 - MySQL server has gone away - Error trying to upload database

    You'll find more discussions of the same error message under "Similar Threads" below.

    "2006 - MySQL server has gone away" is caused by the MySQL server connection dying while PHP or some other process is still expecting it to be open so it can continue running database commands.

    You may have to work with your host to do your database import using another method, or maybe chop your import SQL file into multiple smaller files instead. Or ask your host to increase the SQL connection timeout so you can do your import.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Cart Error: 2006 MySQL server has gone away
    By cinedictum in forum General Questions
    Replies: 7
    Last Post: 13 Mar 2010, 02:26 PM
  2. 2006 MySQL server has gone away - error message
    By betheone in forum General Questions
    Replies: 5
    Last Post: 19 Dec 2009, 05:12 AM
  3. 2006 MySQL server has gone away Error
    By pinkchalkstudio in forum General Questions
    Replies: 1
    Last Post: 18 Sep 2008, 07:28 PM
  4. SQL Error 2006 MySQL server has gone away
    By asterix in forum General Questions
    Replies: 17
    Last Post: 17 Sep 2008, 01:45 PM
  5. 2006 MySQL server has gone away -- error logging into admin
    By gsdcypher in forum General Questions
    Replies: 2
    Last Post: 23 Jul 2008, 08:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg