Record a MySQL logical backup and recovery Drill

Source: Internet
Author: User

The procedure for recording a MySQL logical backup and recovery drill is roughly as follows: get data from 42.121.189.236 to 192.168.1.119 and then send the data to 192.168.1.110 for recovery. Next, let's take a look at this process. (1) get data from 42.121.189.236 on 192.168.1.119 and send it to 192.168.1.110 [plain] $ mysqldump-udavid-p123-h42.121.189.236 -- single-transaction -- lock-tables -- force -- master-data = 1 -- databases MPEG-4>/tmp/cdio_bak. SQL # tar-jcv-f cdio_bak. SQL .tar.bz2 cdio_bak. SQL # scp cdio_bak. SQL .tar.bz2 192.168.1.110: /tmp/(ii) Restore and verify [plain] # tar-jxv-f cdio_bak. SQL .tar.bz2-C/home/mysql $ mysql-uroot-poracle <cdio_bak. SQL mysql> show databases on 192.168.1.110; + -------------------- + | Database | + ------------------ + | information_schema | b7-| mysql> use b7-; Database mysql> select count (*) from t_visitor; + ---------- + | count (*) | + ---------- + | 313 | + ---------- + By David Lin 2013-06-09Good Luck

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.