MySQL Export Import database table

Source: Internet
Author: User
Tags import database

1. Download the database

Mysqldump db_name-h 192.168.5.162-uroot-p >/var/www/db_name.sql (this can be customized)

2. Download a table in the database:

mysqldump db_name table_name-h 192.168.5.162-uroot-p >/var/www/table_name.sql

3. Import the imported database into our local database

First we have to create a new database, which is the database we are going to import.

MySQL created database-h 127.0.0.1-uroot-p </var/www/db_name.sql

4. Import the data sheet into the database we need

MySQL need to import database name-H 127.0.0.1-uroot-p </var/www/db_name.sql

3rd, 4 points are based on the 1th, 2 points to interact with, we and easy to see 3rd, 4 points are roughly the same.

MySQL Export Import database table

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.