Home  >  Article  >  Database  >  [MySQL FAQ]系列 — 大数据量主库如何部署从库_MySQL

[MySQL FAQ]系列 — 大数据量主库如何部署从库_MySQL

WBOY
WBOYOriginal
2016-05-31 08:47:361095browse

1、初始化空库

2、启动复制,忽略常见错误

#slave-skip-errors=1032,1053,1062

3、逐一备份大表,备份大表时,还可以分批次并发导出,方便并发导入

4、全部导入完成后,等待复制没有延迟了,关闭忽略错误选项,重启,正式对外服务

个别不一致的数据,会在后期逐渐被覆盖掉,或者删除掉。

适用于:不要求数据高一致性,且数据量相对较大,尤其是单表较大的情况。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn