MySQL DATA Export and Import (mysql Internal commands: mysqldump, mysql)

Source: Internet
Author: User

MySQL DATA Export and Import (mysql Internal commands: mysqldump, mysql) backup database 1. export a database (all data, table structures, functions, and stored procedures are backed up) # mysqldump-BR database name-uroot-p password -- default-character-set = utf8> xxx. SQL 2. export specific tables and data (data and table structure) of a database # mysqldump database name-uroot-p password -- table Name> xxx. SQL 3. export all table structures of a database (excluding table data) # mysqldump-d database name-uroot-p password> xxx. SQL 4. export all table data of a database (excluding the table structure) # mysqldump-t database name-uroot-p password> xxx. SQL 5. export all functions and views of a database # mysqldump-dt-R database name-uroot-p password> xxx. SQL restoration database 1. import data to a database # mysql database name-uroot-p password <xxx. SQL

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.