Man page for mk-checksum-filter
August 24, 2007 – 5:36 pmMK-CHECKSUM-FILTER
Section: User Contributed Perl Documentation (1)
Updated: 2008-06-01
Index
Return to Main Contents
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 –ignoredb
OVERVIEW
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 the Sourceforge website at
<http://sourceforge.net/projects/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
–ignoredb and –equaldbs are mutually exclusive.
- –equaldbs
short form: -d; type: HashThis comma-separated list of databases are equal.
These database names is 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: -hPreserves headers output by mk-table-checksum.
- –ignoredb
short form: -iIgnore the database name when comparing lines.
This disables incremental processing, so you won’t see any results until all
input is processed.
- –master
short form: -m; type: stringThe 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
short form: -u; type: stringShow unique differing host/db/table names.
The argument must be one of host, db, or table.
- –verbose
short form: -vOutput all lines, even those that have no differences, except for header lines.
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 the Sourceforge bug tracker, forums, and mailing lists to request
support or report bugs: <http://sourceforge.net/projects/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
COPYRIGHT, LICENSE AND WARRANTY
This program is copyright (c) 2007 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.1.27 Distrib 1972 $Revision: 1970 $.
Index
- NAME
- SYNOPSIS
- OVERVIEW
- DOWNLOADING
- OPTIONS
- EXIT STATUS
- ENVIRONMENT
- BUGS
- AUTHOR
- COPYRIGHT, LICENSE AND WARRANTY
- VERSION