1INNOCHECKSUM(1)             MariaDB 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-?, --help
38
39           Displays help and exits.
40
41-c, --count
42
43           Print a count of the number of pages in the file.
44
45-d, --debug
46
47           Debug mode; prints checksums for each page.
48
49-e num, --end-page=#
50
51           End at this page number.
52
53-i, --per-page-details
54
55           Print out per-page detail information.
56
57-I, --info
58
59           Synonym for --help.
60
61-l, --leaf
62
63           Examine leaf index pages.
64
65-m num, --merge=#
66
67           Leaf page count if merge given number of consecutive pages.
68
69-p num, --page-num=#
70
71           Check only this page number.
72
73-s num, --start-page
74
75           Start at this page number.
76
77-u, --skip-corrupt
78
79           Skip corrupt pages.
80
81-v, --verbose
82
83           Verbose mode; print a progress indicator every five seconds.
84
85-V, --version
86
87           Displays version information and exits.
88
90       Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.,
91       2010-2019 MariaDB Foundation
92
93       This documentation is free software; you can redistribute it and/or
94       modify it only under the terms of the GNU General Public License as
95       published by the Free Software Foundation; version 2 of the License.
96
97       This documentation is distributed in the hope that it will be useful,
98       but WITHOUT ANY WARRANTY; without even the implied warranty of
99       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
100       General Public License for more details.
101
102       You should have received a copy of the GNU General Public License along
103       with the program; if not, write to the Free Software Foundation, Inc.,
104       51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA or see
105       http://www.gnu.org/licenses/.
106
107

SEE ALSO

109       For more information, please refer to the MariaDB Knowledge Base,
110       available online at https://mariadb.com/kb/
111

AUTHOR

113       MariaDB Foundation (http://www.mariadb.org/).
114
115
116
117MariaDB 10.5                     27 June 2019                  INNOCHECKSUM(1)
Impressum