MySQL Import and Export tool mysqldump and Source command usage detailed

Source: Internet
Author: User
Tags mysql import

mysqldump-u User name-P [--opt] DATABASENAME [Table] > Export SQL file name

Example:

Mysqldump-h host-u user-p--opt databasename [table] >/home/user/databasename.sql


Exporting a data table structure using mysqldump

mysqldump-u root-p--no-data mysql user >d:\phpweb\sqlbackup\mysql_user.sql


MySQL Database Import command source detailed

mysql most commonly used database Import command is the use of SOURCE,SOURCE commands is very simple, first you need to enter the MySQL database command line management interface, and then select the database to import, that is

USER Database
source exported SQL file

MySQL Import and Export tool mysqldump and Source command usage detailed

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.