mysqldump Exporting SQL scripts

Source: Internet
Author: User

1. Description of the problem

Through the graphical tool, the Query window with the SELECT statement by criteria to query the desired results, and then use the "Export Wizard" to guide the query results into SQL file, but the resulting SQL statement is not complete, no table name, field name.

  

Through the graphical tools, tried a lot of times, and then used the mysqldump

2. Export the Insert SQL script file via mysqldump

# MySQL export insert with field SQL script data # mysqldump-u user name-p password-H database host ip-p port number--skip-extended-insert--complete-insert database name Table name  -t-c--where= "condition" >~/ Test.sql                      --skip-extended-Inserts a row of exports             -t does not produce the CREATE TABLE and drop TABLE statements            -C  produces a complete INSERT statement (area characters wrongly written)            --where stitching condition, only data that matches the criteria are exported

3.MySQLdump parameter details, reference:

# mysqldump--help

  

mysqldump Exporting SQL scripts

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.