Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9241487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:22:49+00:00 2026-06-18T08:22:49+00:00

I’m trying to move a database from serverA to serverB. I’ve created a mysql

  • 0

I’m trying to move a database from serverA to serverB. I’ve created a mysql dump using the following command:

mysqldump -u root -p -c --add-drop-table --add-locks --quick --lock-tables mydatabase > /var/log/mydatabaseJan31.sql

Then on serverB, I’m trying to import this data by doing the following:

mysql -u root -p mydatabase < /tmp/mydatabaseJan31.sql

I’m getting the error “ERROR 2006 (HY000) at line 408: MySQL server has gone away” almost immediately.
I’ve read other posts on stackoverflow about the same error message and I have tried the following:

  1. modified my.cnf to include:

    [mysqldump]
    quick
    max_allowed_packet = 64M

Then i restarted mysql. By the way, the file size is actually only 5.2mb

  1. tried creating the dump file using phpmyadmin.
  2. I don’t think it’s a timeout issue because it dies 2 seconds into the import process.
  3. I’ve opened the mysql dump file and checked out the line number it’s bombing on, and it’s a part of a massive insert statement that starts on line 43.
    I’m not sure if it’s relevant, but line 406 starts off with an incomplete string:

    line 402—-> (341,1996,12,’

    line 403—->front’),(341,1996,12,’interior’),(341,1996,12,’rear’),(341,1996,13,’front’),(341,1996,13,’interior’),(341,1996,13,’rear’),(341,1996,14,’front’)

but having said that, all the preceding records that are being inserted look the same way… so I don’t think that’s the problem either.

Any suggestions would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:22:49+00:00Added an answer on June 18, 2026 at 8:22 am

    max_allowed_packet needs to be set on both client (mysql) and server (mysqld) to have any effect. Since your problem happens when processing the dump, setting it for mysqldump will have no effect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a view passing on information from a database: def serve_article(request, id): served_article
Let's say I'm outputting a post title and in our database, it's Hello Y&#8217;all
I am using jsonparser to parse data and images obtained from json response. When
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.