Record a MySQL logical backup and recovery walkthrough _ MySQL-mysql tutorial

Source: Internet
Author: User
Tags mysql tutorial
Record a MySQL logical backup and recovery drill bitsCN.com

Record a MySQL logical backup and recovery drill

The process is like this:

Get data from 42.121.189.236 to 192.168.1.119 and then send the data to 192.168.1.110 for recovery.

Then, let's take a look at this process,

(I) fetch 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 on 192.168.1.110

[Plain]

# Tar-jxv-f cdio_bak. SQL .tar.bz2-C/home/mysql

$ Mysql-uroot-poracle <cdio_bak. SQL

Mysql> show databases;

+ -------------------- +

| Database |

+ -------------------- +

| Information_schema |

| Di-|

Mysql> use Xilinx;

Database changed

Mysql> select count (*) from t_visitor;

+ ---------- +

| Count (*) |

+ ---------- +

| 1, 313 |

+ ---------- +

By David Lin

2013-06-09

Good Luck

BitsCN.com

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.