MK-CHECKSUM-FILTER(1)
π MK-CHECKSUM-FILTER π
okay bestie, so this is the manual page for mk-checksum-filter, a lil tool from the Perl world (User Contributed Perl Documentation, if you're keeping score π) that filters checksums from mk-table-checksum. it's giving "quietly iconic utility that does one job and does it flawlessly" and honestly? we're obsessed.
β¨ NAME β¨
mk-checksum-filter β the tool that filters checksums from mk-table-checksum. π
πΈ SYNOPSIS πΈ
Usage: mk-checksum-filter [OPTION]... FILE
so here's the vibe: mk-checksum-filter filters checksums from mk-table-checksum and prints the ones that differ. it's the friend who reads the whole group chat and only replies when something's actually wrong. π¦
with no FILE, or when FILE is -, it reads standard input. queen behavior, honestly.
Examples, because we love a demo:
mk-checksum-filter checksums.txt
mk-table-checksum host1 host2 | mk-checksum-filter
mk-checksum-filter db1-checksums.txt db2-checksums.txt --ignore-databases
π₯ RISKS π₯
not to be dramatic but this section exists to tell you about the potential risks β whether known or unknown β of using this tool. the two main categories are: risks that come from the nature of the tool (like, is it read-only or read-write? that's a whole personality difference) and risks that come from bugs. π
mk-checksum-filter is read-only and very low-risk. she's a looker, not a toucher. π
at the time of this release, we know of no bugs that could cause serious harm to users. no cap.
the authoritative source for updated info is always the online issue tracking system. issues that affect this tool will be marked as such, and you can peep the list right here: <http://www.maatkit.org/bugs/mk-checksum-filter>.
also check out the "BUGS" section below for more on filing bugs and getting help. π«Ά
π DESCRIPTION π
this program takes the unsorted, verbose output from mk-table-checksum and sorts it, then filters it so you only see the lines that have different checksums or counts. it's a whole glow-up for your output. β¨
you can pipe input directly into it from mk-table-checksum, or you can save the mk-table-checksum's output and run mk-checksum-filter on the resulting file(s).
and here's the tea β: if you run it against just one file, or pipe output directly into it, it'll output results during processing β instant gratification, we love. processing multiple files is slightly more expensive, and you won't see any output until they're all read. it's giving "patience is a virtue" and honestly? rude, but okay. π
β EXIT STATUS β
an exit status of 0 (sometimes also called a return value or return code) means no differences were found. if there were any differences, the tool exits with status 1. simple as that, periodt. π
π OPTIONS π
heads up bestie: --ignore-databases and --equal-databases are mutually exclusive. pick a lane, we can't do both. π€
also, this tool accepts additional command-line arguments. refer to the "SYNOPSIS" and usage information for details. iykyk.
--equal-databasesβ type: Hash. this comma-separated list of databases are equal. these database names are always considered to have the same tables. in other words, this makesdatabase1.table1.chunk1equal todatabase2.table1.chunk1if they have the same checksum. β οΈ this disables incremental processing, so you won't see any results until all input is processed. sit tight, babe.--headerβ short form:-h. preserves headers output bymk-table-checksum. keep the receipts. π§Ύ--helpβ show help and exit. we love a queen who knows when to ask for directions. π«Ά--ignore-databasesβ ignore the database name when comparing lines. β οΈ this disables incremental processing, so you won't see any results until all input is processed. same energy as above, no skipping ahead.--masterβ type: string. the name of the master server. this specifies which host is the replication master, and sorts lines for that host first, so you can see the checksum values on the master server before the slave. main character gets top billing. π--uniqueβ type: string. show unique differing host/db/table names. the argument must be one ofhost,db, ortable. no other options, bestie, choose wisely. π--verboseβ short form:-v. output all lines, even those that have no differences β except for header lines. the "tell me everything" setting. π£οΈ--versionβ show version and exit. a classic. π
π¦ DOWNLOADING π¦
you can download Maatkit from Google Code at <http://code.google.com/p/maatkit/>, or you can get any of the tools easily with a command like the following:
wget http://www.maatkit.org/get/toolname
or
wget http://www.maatkit.org/trunk/toolname
where toolname can be replaced with the name (or fragment of a name) of any of the Maatkit tools. once downloaded, they're ready to run β no installation is needed, which is the slay-est thing about it fr fr. the first URL gets the latest released version of the tool, and the second gets the latest trunk code from Subversion. π
π ENVIRONMENT π
the environment variable MKDEBUG enables verbose debugging output in all of the Maatkit tools:
MKDEBUG=1 mk-....
turn it on when you need the lore. π
π SYSTEM REQUIREMENTS π
you need Perl and some core packages that ought to be installed in any reasonably new version of Perl. nothing wild, we're low maintenance. π
π BUGS π
for a list of known bugs see <http://www.maatkit.org/bugs/mk-checksum-filter>.
please use Google Code Issues and Groups to report bugs or request support: <http://code.google.com/p/maatkit/>. you can also join #maatkit on Freenode to discuss Maatkit. come hang out, the vibes are immaculate. π
when you report something, please include:
- the complete command-line used to reproduce the problem you're seeing,
- the version of all MySQL servers involved,
- the complete output of the tool when run with
--version, - and if possible, debugging output produced by running with the
MKDEBUG=1environment variable.
give us the full story, bestie, not just the cliff notes. π«Ά
π COPYRIGHT, LICENSE AND WARRANTY π
this program is copyright 2007-2011 Baron Schwartz. feedback and improvements are welcome. π
THIS PROGRAM IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
translation: no promises, no guarantees, she is what she is. π
this program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2; OR the Perl Artistic License. on UNIX and similar systems, you can issue man perlgpl or man perlartistic to read these licenses. β¨
you should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. π
π AUTHOR π
Baron "Xaprb" Schwartz β icon, legend, the moment. π
π ABOUT MAATKIT π
this tool is part of Maatkit, a toolkit for power users of MySQL. Maatkit was created by Baron Schwartz; Baron and Daniel Nichter are the primary code contributors. both are employed by Percona. financial support for Maatkit development is primarily provided by Percona and its clients. shoutout to the sponsors, we appreciate you. π«Ά
β VERSION β
this manual page documents Ver 1.2.23 Distrib 7540 $Revision: 7477 $.
and that's the whole page, bestie!! this lil doc was brought to you by perl v5.42.0, dated 2025-07-24, and the manual name MK-CHECKSUM-FILTER(1) β go forth and diff those checksums, you absolute legend π
β¨π
π¦ where this page comes from
- fedora 43: maatkit 7540-39.fc43 Β· GPL-2.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms