1INNOCHECKSUM(1)              MySQL Database System             INNOCHECKSUM(1)
2
3
4

NAME

6       innochecksum - offline InnoDB file checksum utility
7

SYNOPSIS

9       innochecksum [options] file_name
10

DESCRIPTION

12       innochecksum prints checksums for InnoDB files. This tool reads an
13       InnoDB tablespace file, calculates the checksum for each page, compares
14       the calculated checksum to the stored checksum, and reports mismatches,
15       which indicate damaged pages. It was originally developed to speed up
16       verifying the integrity of tablespace files after power outages but can
17       also be used after file copies. Because checksum mismatches will cause
18       InnoDB to deliberately shut down a running server, it can be preferable
19       to use this tool rather than waiting for a server in production usage
20       to encounter the damaged pages.
21
22       innochecksum cannot be used on tablespace files that the server already
23       has open. For such files, you should use CHECK TABLE to check tables
24       within the tablespace.
25
26       If checksum mismatches are found, you would normally restore the
27       tablespace from backup or start the server and attempt to use mysqldump
28       to make a backup of the tables within the tablespace.
29
30       Invoke innochecksum like this:
31
32           shell> innochecksum [options] file_name
33
34       innochecksum supports the following options. For options that refer to
35       page numbers, the numbers are zero-based.
36
37       ·   -c
38
39           Print a count of the number of pages in the file.
40
41       ·   -d
42
43           Debug mode; prints checksums for each page.
44
45       ·   -e num
46
47           End at this page number.
48
49       ·   -p num
50
51           Check only this page number.
52
53       ·   -s num
54
55           Start at this page number.
56
57       ·   -v
58
59           Verbose mode; print a progress indicator every five seconds.
60
62       Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
63
64       This documentation is free software; you can redistribute it and/or
65       modify it only under the terms of the GNU General Public License as
66       published by the Free Software Foundation; version 2 of the License.
67
68       This documentation is distributed in the hope that it will be useful,
69       but WITHOUT ANY WARRANTY; without even the implied warranty of
70       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
71       General Public License for more details.
72
73       You should have received a copy of the GNU General Public License along
74       with the program; if not, write to the Free Software Foundation, Inc.,
75       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see
76       http://www.gnu.org/licenses/.
77
78

SEE ALSO

80       For more information, please refer to the MySQL Reference Manual, which
81       may already be installed locally and which is also available online at
82       http://dev.mysql.com/doc/.
83

AUTHOR

85       Sun Microsystems, Inc. (http://www.mysql.com/).
86
87
88
89MySQL 5.1                         04/06/2010                   INNOCHECKSUM(1)
Impressum