MySQL Database migration

Source: Internet
Author: User
Tags import database

Recently in a hotel project, the outside network and do not let run data, can only run down the intranet. The data is then imported into the production environment. The amount of data is at the 100W level.

A simple command exports the specified database tables and then uploads them to the specified database server, which is imported into the specified database using command execution. The key is that during the day and do not let the operation of the production environment of the database, only midnight. Tangled Ah ...

1 command       u account  p password                               database name to      Export data table                               Export file        name 2 ---- Default-character-set=utf8 hotelbase_out hotelbase hotelimage hotelrela hotelroom > Hotelbase_out.sql 3        u account   p password  Import database  file 4--padmin  < 
Mysql Command

MySQL Database migration

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.