~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

1 by James Page
Import upstream version 5.6.15
1
'\" t
2
.\"     Title: \fBinnochecksum\fR
3
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
1.2.6 by Marc Deslauriers
Import upstream version 5.6.25
5
.\"      Date: 05/05/2015
1 by James Page
Import upstream version 5.6.15
6
.\"    Manual: MySQL Database System
7
.\"    Source: MySQL 5.6
8
.\"  Language: English
9
.\"
1.2.6 by Marc Deslauriers
Import upstream version 5.6.25
10
.TH "\FBINNOCHECKSUM\FR" "1" "05/05/2015" "MySQL 5\&.6" "MySQL Database System"
1 by James Page
Import upstream version 5.6.15
11
.\" -----------------------------------------------------------------
12
.\" * Define some portability stuff
13
.\" -----------------------------------------------------------------
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
.\" http://bugs.debian.org/507673
16
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18
.ie \n(.g .ds Aq \(aq
19
.el       .ds Aq '
20
.\" -----------------------------------------------------------------
21
.\" * set default formatting
22
.\" -----------------------------------------------------------------
23
.\" disable hyphenation
24
.nh
25
.\" disable justification (adjust text to left margin only)
26
.ad l
27
.\" -----------------------------------------------------------------
28
.\" * MAIN CONTENT STARTS HERE *
29
.\" -----------------------------------------------------------------
30
.\" innochecksum
31
.SH "NAME"
32
innochecksum \- offline InnoDB file checksum utility
33
.SH "SYNOPSIS"
34
.HP \w'\fBinnochecksum\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIfile_name\fR\fR\ 'u
35
\fBinnochecksum [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIfile_name\fR\fR
36
.SH "DESCRIPTION"
37
.PP
38
\fBinnochecksum\fR
39
prints checksums for
40
InnoDB
41
files\&. This tool reads an
42
InnoDB
43
tablespace file, calculates the checksum for each page, compares the calculated checksum to the stored checksum, and reports mismatches, which indicate damaged pages\&. It was originally developed to speed up verifying the integrity of tablespace files after power outages but can also be used after file copies\&. Because checksum mismatches will cause
44
InnoDB
1.2.1 by James Page
Import upstream version 5.6.16
45
to deliberately shut down a running server, it can be preferable to use this tool rather than waiting for a server in production usage to encounter the damaged pages\&. As of MySQL 5\&.6\&.16,
46
\fBinnochecksum\fR
47
supports files greater than 2GB in size\&. Previously,
48
\fBinnochecksum\fR
49
only supported files up to 2GB in size\&.
1 by James Page
Import upstream version 5.6.15
50
.PP
51
\fBinnochecksum\fR
52
cannot be used on tablespace files that the server already has open\&. For such files, you should use
53
CHECK TABLE
54
to check tables within the tablespace\&.
55
.PP
56
If checksum mismatches are found, you would normally restore the tablespace from backup or start the server and attempt to use
57
\fBmysqldump\fR
58
to make a backup of the tables within the tablespace\&.
59
.PP
60
Invoke
61
\fBinnochecksum\fR
62
like this:
63
.sp
64
.if n \{\
65
.RS 4
66
.\}
67
.nf
68
shell> \fBinnochecksum [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIfile_name\fR\fR
69
.fi
70
.if n \{\
71
.RE
72
.\}
73
.PP
74
\fBinnochecksum\fR
75
supports the following options\&. For options that refer to page numbers, the numbers are zero\-based\&.
76
.sp
77
.RS 4
78
.ie n \{\
79
\h'-04'\(bu\h'+03'\c
80
.\}
81
.el \{\
82
.sp -1
83
.IP \(bu 2.3
84
.\}
85
\fB\-c\fR
86
.sp
87
Print a count of the number of pages in the file\&.
88
.RE
89
.sp
90
.RS 4
91
.ie n \{\
92
\h'-04'\(bu\h'+03'\c
93
.\}
94
.el \{\
95
.sp -1
96
.IP \(bu 2.3
97
.\}
98
\fB\-d\fR
99
.sp
100
Debug mode; prints checksums for each page\&.
101
.RE
102
.sp
103
.RS 4
104
.ie n \{\
105
\h'-04'\(bu\h'+03'\c
106
.\}
107
.el \{\
108
.sp -1
109
.IP \(bu 2.3
110
.\}
111
\fB\-e \fR\fB\fInum\fR\fR
112
.sp
113
End at this page number\&.
114
.RE
115
.sp
116
.RS 4
117
.ie n \{\
118
\h'-04'\(bu\h'+03'\c
119
.\}
120
.el \{\
121
.sp -1
122
.IP \(bu 2.3
123
.\}
124
\fB\-p \fR\fB\fInum\fR\fR
125
.sp
126
Check only this page number\&.
127
.RE
128
.sp
129
.RS 4
130
.ie n \{\
131
\h'-04'\(bu\h'+03'\c
132
.\}
133
.el \{\
134
.sp -1
135
.IP \(bu 2.3
136
.\}
137
\fB\-s \fR\fB\fInum\fR\fR
138
.sp
139
Start at this page number\&.
140
.RE
141
.sp
142
.RS 4
143
.ie n \{\
144
\h'-04'\(bu\h'+03'\c
145
.\}
146
.el \{\
147
.sp -1
148
.IP \(bu 2.3
149
.\}
150
\fB\-v\fR
151
.sp
152
Verbose mode; print a progress indicator every five seconds\&.
153
.RE
154
.SH "COPYRIGHT"
155
.br
156
.PP
1.2.4 by Robie Basak
Import upstream version 5.6.23
157
Copyright \(co 1997, 2015, Oracle and/or its affiliates. All rights reserved.
1 by James Page
Import upstream version 5.6.15
158
.PP
159
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
160
.PP
161
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
162
.PP
163
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
164
.sp
165
.SH "SEE ALSO"
166
For more information, please refer to the MySQL Reference Manual,
167
which may already be installed locally and which is also available
168
online at http://dev.mysql.com/doc/.
169
.SH AUTHOR
170
Oracle Corporation (http://dev.mysql.com/).