Comparison of backup efficiency between MySQL backup tools mysqldump and mydumper

Source: Internet
Author: User
Tags mysql backup

MySQL database backup tool has its own mysqldump, which is an official mysql backup tool. However, mydumper, a third-party backup tool, is advantageous for more people. Next we will test and verify the backup efficiency between them.

1. Install the mydumper source package. You can check the relevant information to complete the installation!

2. Create a test database and table in the mysql database (enter the mysql database)

Create database test;

Create table test (a int );

3. Generate a million data file (input on the terminal)

Seq 1 30000000>/tmp/test. SQL

4. import data from the file to the database table

Load data infile '/tmp/test. SQL' into table test;

5. Use the mysql backup tool to back up and display the backup time (Figure below)

Time mysqldump test>/tmp/test1.bak

6. Use the third-party backup tool mydumper to back up and display the backup time (Figure below)

Time mydumper-B test-o/tmp/test2.bak-r 5000

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.