Mysqldump Common Command Options

Source: Internet
Author: User

-A--all-databases back up all databases

-B--databases backing up the specified database, you can specify multiple library names at the same time

-D backs up the table structure only

-T backs up table data only

-T--tab separates table structure from table data in plain text format, not SQL statement, followed by path

-F Refresh the Binlog log to generate a new Mysql-bin file

-MASTER-DATA=[1|2] 1 means that the log file and pos,2 are recorded as annotations, and 2 is commonly used for backup.

-X--lock-all-tables Lock all tables when backing up

--single-transaction Non-lock table backup for InnoDB engine

-r backup stored procedures and functions

--opt optimizations enabled when backing up, including closing buffers, and writing more statements in less SQL when exporting

--allow-keywords allows reserved words to be used as table names


This article is from the "burning Years of Passion" blog, please be sure to keep this source http://liuzhengwei521.blog.51cto.com/4855442/1881974

Mysqldump Common Command Options

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.