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 4324978
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:12:19+00:00 2026-05-21T09:12:19+00:00

I have a database of about 6GB in size and it has a table

  • 0

I have a database of about 6GB in size and it has a table with 12.6 million rows. I tried to export the database into a SQL dump by:

mysqldump -u root -p db_name > db_name.sql

When the command finishes, the exported SQL dump file is just about 2GB and the primary table got exported only about 1 million rows.

What could possibly be wrong?

  • 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-21T09:12:20+00:00Added an answer on May 21, 2026 at 9:12 am

    There is a 2GB filesize limit for some reason, the easiest way to get around this is using split:

    mysqldump ... | split -b 250m - filename.sql-
    

    You can also compress the files like this:

    mysqldump ... | gzip -9c | split -b 250m - filename.sql.gz-
    

    To restore from a non-compressed file, do this:

    cat filename.sql-* | mysql ...
    

    For a compressed file:

    cat filename.sql-* | zcat | mysql ...
    

    Of course if you want a single file, you can then tar the result.

    Obviously you can replace the 250m with a different size if you wish.

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

Sidebar

Related Questions

I have a very large database with about 120 Million records in one table.I
Ok I have a database with about 1800 rows, each has a column lat
I have a relational database with about 100 tables. Each table has unique, numerical,
I have a Database and a table with about 200 mb data. (Product descriptions,
I have question about database optimizing, indexing. I have table that called projects and
My database has about 30 views, most of which have a reference to another
I have a large SQL Server database with about 40 columns and hundreds of
I have a database which is 6GB in size, with a multitude of tables
I have a database containing about 300,000 rows of product information. I need to
I have a database with about 3 milion records, each record has id (int,

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.