mydumper的工具

我mysql数据库中有lianxi库,有个lianxi01表,数据有51361条
我执行了mydumper -B lianxi -u root -h localhost -o /tmp/sqlbak -r 5000 --password='123‘

查看一下文件夹 ls /tmp/sqlbak
lianxi.lianxi01.00000.sql  lianxi.lianxi01.00006.sql
lianxi.lianxi01.00001.sql  lianxi.lianxi01.00007.sql
lianxi.lianxi01.00002.sql  lianxi.lianxi01.00008.sql
lianxi.lianxi01.00003.sql  lianxi.lianxi01.00009.sql
lianxi.lianxi01.00004.sql  lianxi.lianxi01-schema.sql
lianxi.lianxi01.00005.sql  metadata

我查看了一下文件 cat /tmp/sqlbak/metadata
Started dump at: 2012-11-29 22:48:20
Finished dump at: 2012-11-29 22:48:20

head /tmp/sqlbak/lianxi.lianxi01.00001.sql
/*!40101 SET NAMES binary*/;
/*!40014 SET FOREIGN_KEY_CHECKS=0*/;
INSERT INTO `lianxi01` VALUES
(5138),
(5139),
(5140),
(5141),
(5142),
(5143),
(5144),

tail /tmp/sqlbak/lianxi.lianxi01.00009.sql
(51352),
(51353),
(51354),
(51355),
(51356),
(51357),
(51358),
(51359),
(51360),
(51361);

本文出自 “荣新1209星云信息” 博客,谢绝转载!

你可能感兴趣的:(mydumper)