Mysqldump parameter Detailed

Source: Internet
Author: User
Tags character set comments table name

Parameters

Parameter description

--all-databases,-A

Export all databases.

Mysqldump-uroot-p--all-databases

--all-tablespaces, Y

Export all table spaces.

Mysqldump-uroot-p--all-databases--all-tablespaces

--no-tablespaces, Y

does not export any table space information.

Mysqldump-uroot-p--all-databases--no-tablespaces

--add-drop-database

Add a drop DATABASE statement before each database is created.

Mysqldump-uroot-p--all-databases--add-drop-database

--add-drop-table

Add a Drop Data table statement before each datasheet is created. (Default is open, use--skip-add-drop-table cancellation option)

Mysqldump-uroot-p--all-databases (Add drop statement by default)

Mysqldump-uroot-p--all-databases–skip-add-drop-table (Cancel drop statement)

--add-locks

Add lock tables before each table is exported and then unlock table. (Default is open, use--skip-add-locks cancellation option)

Mysqldump-uroot-p--all-databases (default add lock statement)

Mysqldump-uroot-p--all-databases–skip-add-locks (Cancel lock statement)

--allow-keywords

Allow creation of column names that are keywords. This is done by the table name prefix in each column name.

Mysqldump-uroot-p--all-databases--allow-keywords

--apply-slave-statements

Add ' STOP SLAVE ' before ' Change MASTER ' and add ' START SLAVE ' at the end of the export.

Mysqldump-uroot-p--all-databases--apply-slave-statements

--character-sets-dir

Directory of Character Set files

Mysqldump-uroot-p--all-databases--character-sets-dir=/usr/local/mysql/share/mysql/charsets

--comments

additional annotation information. Open by default, can be canceled with--skip-comments

Mysqldump-uroot-p--all-databases (Default record Note)

Mysqldump-uroot-p--all-databases--skip-comments (uncomment)

--compatible

The exported data will be compatible with other databases or older versions of MySQL. Values can be ANSI, mysql323, MYSQL40, PostgreSQL, Oracle, MSSQL, DB2, MAXDB, No_key_options, no_tables_options, no_field_options, etc. ,

To use a few values, separate them with commas. It does not guarantee full compatibility, but is as compatible as possible.

Mysqldump-uroot-p--all-databases--compatible=ansi

--compact

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.