Mysqldump command note -- opt

Source: Internet
Author: User

Mysqldump command note -- opt

Mysqldump-uroot-p -- opt DATABASENAME [Table]> xxx. SQL

 

By default, the SQL file exported by Mysqldump contains not only the exported data, but also the structure information of all data tables in the exported database. -Opt: This Mysqldump command parameter is optional. If this option is included, quick, add-drop-table, add-locks, extended-insert of the Mysqldump command are activated, the lock-tables parameter, that is, when using Mysqldump to export Mysql database information using the-opt parameter, you do not need to attach these parameters. -Quick: Ignore the buffer output. The Mysqldump command exports data directly to the specified SQL file. -Add-drop-table: add the DROP-table if exists statement before each create tabel command to prevent duplicate data tables. -Add-locks: indicates to LOCK and UNLOCK a specific data table before and after the INSERT data. You can open the SQL file exported by Mysqldump and the LOCK TABLES and UNLOCK TABLES statements will appear before the INSERT operation. -Extended-insert (-e): This parameter indicates that multiple rows can be inserted.

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.