Skip-opt for mysqldump

Source: Internet
Author: User
Tags percona server
Recently, when I used mysqldump to back up data tables separately, I made two backups. When the database table structure is backed up, the skip-opt option is specified, which is equivalent to: -- add-drop-table, -- add-locks, -- create-options, -- quick, -- extended-insert, -- lock-tables, -- set-charset, and -- di

Recently, when I used mysqldump to back up data tables separately, I made two backups. When the database table structure is backed up, the skip-opt option is specified, which is equivalent to: -- add-drop-table, -- add-locks, -- create-options, -- quick, -- extended-insert, -- lock-tables, -- set-charset, and -- di


Recently, when I used mysqldump to back up data tables separately, I made two backups.
When the database table structure is backed up, the-skip-opt option is specified, which is equivalent:

--add-drop-table, --add-locks,--create-options, --quick, --extended-insert,--lock-tables, --set-charset, and --disable-keys

Option-create-option looks inconspicuous:

  -a, --create-options       Include all MySQL specific create options.

In fact, if we disable it, the table structure backed up will be missing:

AUTO_INCREMENT -- The AUTO_INCREMENT attribute of the PK field and the AUTO_INCREMENT attribute of the data table all lose ENGINE = InnoDB default charset = utf8 -- the ENGINE and character set attribute of the data table

For MySQL-specific data table attributes, note the following:

Server version:         5.5.19-55-log Percona Server (GPL), Release rel24.0, Revision 204mysqldump --versionmysqldump  Ver 10.13 Distrib 5.5.19, for Linux (x86_64)

Original article address: skip-opt of mysqldump option. Thank you for sharing it with the original author.

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.