Skipping MySQL replication errors
In order to reduce mySQL replication breakagesslave-skip-errors=1062,1053,1146,1051,1050
What this does is not stop replication in case following errors are encountered
Message: Table '%s' already exists
Message: Unknown table '%s'
Message: Server shutdown in progress
Message: Duplicate entry '%s' for key %d
Message: Table '%s.%s' doesn't exist
This will avoid the very common primary key collisions and "temporary tables aren't there" problems. Writing this down for posterity. Use with caution.
No comments:
Post a Comment