Export a single table structure and data from mysql

Source: Internet
Author: User

Export a single table structure and data from mysql mysqldump-u username-p password-P port number -- database name -- tables Table Name> c:/export file name. SQL
1. The parameter-P can be omitted unless your port number is not the default mysql port number. 2. If you do not enter the -- tables parameter, the MYSQL connection command is used to export all table data in the database www.2cto.com 1: mysql-h host address-u user name-p User Password 2) display database list: show databases; 3) display database list: show databases; 4) display data table list: show tables; 5) display the structure of the data table: name of the describe table; from the East blog

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.