摘要: mysqlhotcopy 是MySQL的热备工具,详细请看手册 ,为了安全起见我们给热备分配个用户:grant select, reload, lock tables on *.* to 'hotcopy'@'localhost' identified by '123456'; 如果我们只想热备其中的一部分数据就有可能用到正则了,使用 mysqlhotcopy --help可以看到它支持的选项,其中有:--regexp 这个正则是和数据库名匹配的,比如:备份以abc开头的库,可以使用:mysqlhotcopy --flushlog -u=' 阅读全文
posted @ 2011-06-10 17:38 sunss 阅读(332) 评论(0) 推荐(0) 编辑