数据库做主从时sql线程报错1032,数据库主从两个库数据不一致; 1,全局锁:flush tables with read lock; 禁止一切写行为。解开锁:unlock tables; 2,停掉写动作的服务(风险较大)