Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Master and Slave data desynchronizing on MySQL Replication

$
0
0

Versions: OS Debian, Master: MySQL 5.5.40-0, Production Slave: Mysql 5.5.40-0, Local Slave: 5.5.37-0

I have a MySQL Server with 2 slaves, one on the cloud and the other on a local machine. The local one gets desynchronized with the master for reasons I can't find.

From time to time a specific command fails showing that the data on tables are not equal. This command is:

UPDATE tb_user_cash SET cash = cash - 1237684 WHERE user_id = 3930248;

On the local slave it gives me the following error: 'BIGINT UNSIGNED value is out of range' because the column is unsigned and the value would become negative after the subtraction, but on the Master and Cloud Slave the value is bigger, allowing it to be subtracted without turning negative.

I've tried to drop and recreate the local slave several times but it always end up desynchronizing and giving me an error like this.

Any thoughts about where to look for stuff? Maybe the difference of the minor version on the local slave?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>