hugowan / maatkit

Automatically exported from code.google.com/p/maatkit
0 stars 0 forks source link

Make mk-table-checksum support schema objects #98

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The --schema option is very useful.  For MySQL 5 and newer, we can also
checksum triggers, view definitions, and so on.  We can do queries like the
following:

select EVENT_OBJECT_SCHEMA, EVENT_OBJECT_TABLE, ACTION_TIMING,
EVENT_MANIPULATION, crc32(concat_ws('#',ACTION_STATEMENT,SQL_MODE)) AS CRC
from INFORMATION_SCHEMA.TRIGGERS;

The information_schema is very slow and only certain tables should be
checksummed from it, and it needs to be order-independent I think.  This
will be special-case code.

ROUTINES
TRIGGERS
VIEWS

And maybe EVENTS in 5.1?

Original issue reported on code.google.com by baron.schwartz on 9 Oct 2008 at 8:13

GoogleCodeExporter commented 9 years ago
Issue 566 has been merged into this issue.

Original comment by baron.schwartz on 6 Oct 2009 at 2:31

GoogleCodeExporter commented 9 years ago

Original comment by baron.schwartz on 1 Feb 2010 at 1:29

GoogleCodeExporter commented 9 years ago

Original comment by dan...@percona.com on 23 Mar 2010 at 7:01