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

  • Home
  • SEARCH
  • 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 6845281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:28:52+00:00 2026-05-27T00:28:52+00:00

I use an INSERT INTO & DELETE FROM combination in a PHP script to

  • 0

I use an INSERT INTO & DELETE FROM combination in a PHP script to take data out of an operational MySQL table and put into into an archive table.

The archive table has gotten too big. Even though no day-to-day operations are performed on it, mysqldump chokes when we back up (error 2013):

Error 2013: Lost connection to MySQL server during query when dumping table 'some_table' at row: 1915554

What can I do? Should my PHP script move it to another DB (how?)? Is it okay to keep the large table in the operational db?–in that case, how do I get around the mysqldump issue?

Thanks!

  • 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-05-27T00:28:53+00:00Added an answer on May 27, 2026 at 12:28 am

    Are you by chance dumping using memory buffering and running out of swap and physical RAM? If so, you can try dumping row by row instead.

    Try adding –quick to your mysqldump statement.

    According to the documentation, you should combine –single-transaction with –quick.

    Source: http://dev.mysql.com/doc/refman/5.5/en/mysqldump.html

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

Sidebar

Related Questions

I have the following code I use to insert form data into a single
So I am trying to use jQuery to insert data from an ajax call.
If I have the following table & data to allow us to use the
MySqlCommand cmd = new MySqlCommand (@INSERT INTO Table(field) VALUES('somevalue'); + SELECT * FROM table,cn);
I am currently working on a python script that pulls data from a table
What commands in Emacs can I use to insert into the text buffer of
In Informix I can run SQL statement that use other database: INSERT INTO other_db:mytable
I want to use javascript to insert some elements into the current page. Such
I have below code to insert a style into DOM (there is a use
I'd like to use a foreach loop to insert a _POST associative array into

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.