MK-CHECKSUM-FILTER(1)

NAME
mk-checksum-filter - Filter checksums from mk-table-checksum.

SYNOPSIS
   mk-checksum-filter checksums.txt
   mk-table-checksum host1 host2 | mk-checksum-filter
   mk-checksum-filter db1-checksums.txt db2-checksums.txt --ignore-databases

DESCRIPTION
This program takes the unsorted, verbose output from mk-table-checksum and sorts it, then filters it so you only see lines that have different checksums or counts.

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). If you run it against just one file, or pipe output directly into it, it'll output results during processing. Processing multiple files is slightly more expensive, and you won't see any output until they're all read.

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. The first URL gets the latest released version of the tool, and the second gets the latest trunk code from Subversion.

OPTIONS
"--ignore-databases" and "--equal-databases" are mutually exclusive.

--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 makes "database1.table1.chunk1" equal to "database2.table1.chunk1" if they have the same checksum.

    This disables incremental processing, so you won't see any results until all input is processed.

--header
    short form: -h

    Preserves headers output by mk-table-checksum.

--help
    Show help and exit.

--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.

--master
    type: string

    The name of the master server.

    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.

--unique
    type: string

    Show unique differing host/db/table names.

    The argument must be one of host, db, or table.

--verbose
    short form: -v

    Output all lines, even those that have no differences, except for header lines.

--version
    Show version and exit.

EXIT STATUS
Exit status is 0 if no differences were found, 1 if any were.

ENVIRONMENT
The environment variable "MKDEBUG" enables verbose debugging output in all of the Maatkit tools:

   MKDEBUG=1 mk-....

BUGS
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.

Please include the complete command-line used to reproduce the problem you are 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=1" environment variable.

AUTHOR
Baron "Xaprb" Schwartz.

COPYRIGHT, LICENSE AND WARRANTY
This program is copyright 2007-2009 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

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.

VERSION
This manual page documents Ver 1.2.6 Distrib 4047 $Revision: 3965 $.