You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

239 lines
4.9 KiB

10 years ago
10 years ago
10 years ago
10 years ago
  1. '\" t
  2. .\"
  3. .TH "\FBINNOCHECKSUM\FR" "1" "14/12/2015" "MariaDB 10\&.1" "MariaDB Database System"
  4. .\" -----------------------------------------------------------------
  5. .\" * set default formatting
  6. .\" -----------------------------------------------------------------
  7. .\" disable hyphenation
  8. .nh
  9. .\" disable justification (adjust text to left margin only)
  10. .ad l
  11. .\" -----------------------------------------------------------------
  12. .\" * MAIN CONTENT STARTS HERE *
  13. .\" -----------------------------------------------------------------
  14. .\" innochecksum
  15. .SH "NAME"
  16. innochecksum \- offline InnoDB file checksum utility
  17. .SH "SYNOPSIS"
  18. .HP \w'\fBinnochecksum\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIfile_name\fR\fR\ 'u
  19. \fBinnochecksum [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIfile_name\fR\fR
  20. .SH "DESCRIPTION"
  21. .PP
  22. \fBinnochecksum\fR
  23. prints checksums for
  24. InnoDB
  25. files\&. This tool reads an
  26. InnoDB
  27. 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
  28. InnoDB
  29. 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\&.
  30. .PP
  31. \fBinnochecksum\fR
  32. cannot be used on tablespace files that the server already has open\&. For such files, you should use
  33. CHECK TABLE
  34. to check tables within the tablespace\&.
  35. .PP
  36. If checksum mismatches are found, you would normally restore the tablespace from backup or start the server and attempt to use
  37. \fBmysqldump\fR
  38. to make a backup of the tables within the tablespace\&.
  39. .PP
  40. Invoke
  41. \fBinnochecksum\fR
  42. like this:
  43. .sp
  44. .if n \{\
  45. .RS 4
  46. .\}
  47. .nf
  48. shell> \fBinnochecksum [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIfile_name\fR\fR
  49. .fi
  50. .if n \{\
  51. .RE
  52. .\}
  53. .PP
  54. \fBinnochecksum\fR
  55. supports the following options\&. For options that refer to page numbers, the numbers are zero\-based\&.
  56. .sp
  57. .RS 4
  58. .ie n \{\
  59. \h'-04'\(bu\h'+03'\c
  60. .\}
  61. .el \{\
  62. .sp -1
  63. .IP \(bu 2.3
  64. .\}
  65. \fB\-?, --help\fR
  66. .sp
  67. Displays help and exits\&.
  68. .RE
  69. .sp
  70. .RS 4
  71. .ie n \{\
  72. \h'-04'\(bu\h'+03'\c
  73. .\}
  74. .el \{\
  75. .sp -1
  76. .IP \(bu 2.3
  77. .\}
  78. \fB\-c, --count\fR
  79. .sp
  80. Print a count of the number of pages in the file\&.
  81. .RE
  82. .sp
  83. .RS 4
  84. .ie n \{\
  85. \h'-04'\(bu\h'+03'\c
  86. .\}
  87. .el \{\
  88. .sp -1
  89. .IP \(bu 2.3
  90. .\}
  91. \fB\-d, --debug\fR
  92. .sp
  93. Debug mode; prints checksums for each page\&.
  94. .RE
  95. .sp
  96. .RS 4
  97. .ie n \{\
  98. \h'-04'\(bu\h'+03'\c
  99. .\}
  100. .el \{\
  101. .sp -1
  102. .IP \(bu 2.3
  103. .\}
  104. \fB\-e \fR\fB\fInum\fB, --end-page=#\fR\fR
  105. .sp
  106. End at this page number\&.
  107. .RE
  108. .sp
  109. .RS 4
  110. .ie n \{\
  111. \h'-04'\(bu\h'+03'\c
  112. .\}
  113. .el \{\
  114. .sp -1
  115. .IP \(bu 2.3
  116. .\}
  117. \fB\-i, --per-page-details\fR
  118. .sp
  119. Print out per-page detail information\&.
  120. .RE
  121. .sp
  122. .RS 4
  123. .ie n \{\
  124. \h'-04'\(bu\h'+03'\c
  125. .\}
  126. .el \{\
  127. .sp -1
  128. .IP \(bu 2.3
  129. .\}
  130. \fB\-I, --info\fR
  131. .sp
  132. Synonym for \fB--help\fR\&.
  133. .RE
  134. .sp
  135. .RS 4
  136. .ie n \{\
  137. \h'-04'\(bu\h'+03'\c
  138. .\}
  139. .el \{\
  140. .sp -1
  141. .IP \(bu 2.3
  142. .\}
  143. \fB\-l, --leaf\fR
  144. .sp
  145. Examine leaf index pages\&.
  146. .RE
  147. .sp
  148. .RS 4
  149. .ie n \{\
  150. \h'-04'\(bu\h'+03'\c
  151. .\}
  152. .el \{\
  153. .sp -1
  154. .IP \(bu 2.3
  155. .\}
  156. \fB\-m \fR\fB\fInum\fB, --merge=#\fR\fR
  157. .sp
  158. Leaf page count if merge given number of consecutive pages\&.
  159. .RE
  160. .sp
  161. .RS 4
  162. .ie n \{\
  163. \h'-04'\(bu\h'+03'\c
  164. .\}
  165. .el \{\
  166. .sp -1
  167. .IP \(bu 2.3
  168. .\}
  169. \fB\-p \fR\fB\fInum\fB, --page-num=#\fR\fR
  170. .sp
  171. Check only this page number\&.
  172. .RE
  173. .sp
  174. .RS 4
  175. .ie n \{\
  176. \h'-04'\(bu\h'+03'\c
  177. .\}
  178. .el \{\
  179. .sp -1
  180. .IP \(bu 2.3
  181. .\}
  182. \fB\-s \fR\fB\fInum\fB, --start-page\fR\fR
  183. .sp
  184. Start at this page number\&.
  185. .RE
  186. .sp
  187. .RS 4
  188. .ie n \{\
  189. \h'-04'\(bu\h'+03'\c
  190. .\}
  191. .el \{\
  192. .sp -1
  193. .IP \(bu 2.3
  194. .\}
  195. \fB\-u, --skip-corrupt\fR\fR
  196. .sp
  197. Skip corrupt pages\&.
  198. .RE
  199. .sp
  200. .RS 4
  201. .ie n \{\
  202. \h'-04'\(bu\h'+03'\c
  203. .\}
  204. .el \{\
  205. .sp -1
  206. .IP \(bu 2.3
  207. .\}
  208. \fB\-v, --verbose\fR
  209. .sp
  210. Verbose mode; print a progress indicator every five seconds\&.
  211. .RE
  212. .sp
  213. .RS 4
  214. .ie n \{\
  215. \h'-04'\(bu\h'+03'\c
  216. .\}
  217. .el \{\
  218. .sp -1
  219. .IP \(bu 2.3
  220. .\}
  221. \fB\-V, --version\fR
  222. .sp
  223. Displays version information and exits\&.
  224. .RE
  225. .SH "COPYRIGHT"
  226. .br
  227. .PP
  228. Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc., 2010-2015 MariaDB Foundation
  229. .PP
  230. 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.
  231. .PP
  232. 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.
  233. .PP
  234. 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/.
  235. .sp
  236. .SH "SEE ALSO"
  237. For more information, please refer to the MariaDB Knowledge Base, available online at https://mariadb.com/kb/
  238. .SH AUTHOR
  239. MariaDB Foundation (http://www.mariadb.org/).