MySQL Forums
Forum List  »  Replication

Re: Unsafe statement written to the binary log
Posted by: Rick James
Date: April 02, 2012 11:43PM

The SQL needs changing; the 'problem' cannot be solved without access to the code.

OTOH, these _usually_ are not serious problems. Usually a SELECT without an ORDER BY will perform the same on the Slave as on the Master.

Here's an example where it does not matter:

loop ...
DELETE FROM tbl WHERE ts < CURRENT_DATE() - INTERVAL 1 DAY LIMIT 1000;
... end loop

That will delete all the old rows, and it does not matter if they are deleted in a different order.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Unsafe statement written to the binary log
2819
April 02, 2012 11:43PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.