Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

mysqldbcompare fails with event definitions. #47

Open
whataboutpereira opened this issue Oct 10, 2019 · 0 comments
Open

mysqldbcompare fails with event definitions. #47

whataboutpereira opened this issue Oct 10, 2019 · 0 comments

Comments

@whataboutpereira
Copy link

whataboutpereira commented Oct 10, 2019

mysqldbcompare gets events info from INFORMATION_SCHEMA.EVENTS:

SELECT EVENT_SCHEMA, EVENT_NAME, DEFINER, EVENT_DEFINITION,
    EVENT_TYPE, INTERVAL_FIELD, INTERVAL_VALUE, STATUS,
    ON_COMPLETION, STARTS, ENDS
FROM
    INFORMATION_SCHEMA.EVENTS
WHERE 
    EVENT_SCHEMA = 'schema' AND EVENT_NAME = 'name';

The trouble is that events replicated from master to slave will have their 'STATUS' field changed from 'ENABLED' to 'SLAVESIDE_DISABLED' and this will make replicated database comparisons always fail.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant