INNOCHECKSUM(1)
π INNOCHECKSUM(1) β the offline InnoDB file checksum utility, bestie β¨
okay so this is the manual for innochecksum, living in the MariaDB Database System corner of your man pages, and honestly? it's giving detective energy. let's get into it π΅οΈβοΈπ
β¨ NAME β¨
innochecksum β offline InnoDB file checksum utility π
π¦ SYNOPSIS π¦
innochecksum [options] file_name
πΈ DESCRIPTION πΈ
so innochecksum prints checksums for InnoDB files, periodt. what it does is read an InnoDB tablespace file, calculate the checksum for each page, compare that calculated checksum against the stored checksum, and then report any mismatches β and a mismatch means a damaged page, no cap π
it was originally developed to speed up verifying the integrity of tablespace files after power outages, but you can also use it after file copies. and here's why that matters: because checksum mismatches will cause InnoDB 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. like, why wait for the meltdown when you can vibe check the file first π
bestie, listen:innochecksumcannot be used on tablespace files that the server already has open. for those, you should useCHECK TABLEto check tables within the tablespace. that's the rule π«Ά
if checksum mismatches are found, you would normally restore the tablespace from backup, or start the server and attempt to use mariadb-dump to make a backup of the tables within the tablespace.
invoke innochecksum like this:
shell> innochecksum [options] file_name
innochecksum supports the following options. for options that refer to page numbers, the numbers are zero-based. yes, zero. we start counting at 0 here, iconic behavior β¨
π OPTIONS π
-?,--helpβ displays help and exits. your lil "what is happening" button π-a num,--allow-mismatches=#β maximum checksum mismatch allowed beforeinnochecksumterminates. defaults to0, which terminates on the first mismatch. so yeah, default is zero tolerance, she's strict π€-c,--countβ print a count of the number of pages in the file. page census π-e num,--end-page=#β end at this page number.-i,--per-page-detailsβ print out per-page detail information. the receipts, per page π§Ύ-I,--infoβ synonym for--help.-f,--leafβ examine leaf index pages. π-l fn,--log=fnβ log output to the specified filename, fn.-m num,--merge=#β leaf page count if merge given number of consecutive pages.-n,--no-checkβ ignore the checksum verification. until MariaDB 10.6, must be used with the--writeoption. π-p num,--page-num=#β check only this page number. one page, main character energy π-D name,--page-type-dump=nameβ dump the page type info for each page in a tablespace.-S,--page-type-summaryβ display a count of each page type in a tablespace.-s num,--start-pageβ start at this page number.-u,--skip-corruptβ skip corrupt pages. we're not looking at that rn π-C name,--strict-check=nameβ specify the strict checksum algorithm. one of:crc32,innodb,none. if not specified, validates againstinnodb,crc32andnone. removed in MariaDB 10.6. π-w name,--write=nameβ rewrite the checksum algorithm. one ofcrc32,innodb,none. an exclusive lock is obtained during use. use in conjunction with the-no-checkoption to rewrite an invalid checksum. removed in MariaDB 10.6. π-v,--verboseβ verbose mode; print a progress indicator every five seconds. she talks a lot, we love her π£οΈπ-V,--versionβ displays version information and exits.
π COPYRIGHT π
copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc., 2010-2025 MariaDB Foundation
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.
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.
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-1335 USA or see http://www.gnu.org/licenses/.
π SEE ALSO π
for more information, please refer to the MariaDB Documentation, available online at https://mariadb.com/docs/ β go read it, iykyk πβ¨
π«Ά AUTHOR π«Ά
MariaDB Foundation (http://www.mariadb.org/). slay π
and that's the whole page, bestie!! this one came from MariaDB 11.8, dated 5 March 2025, and it's the INNOCHECKSUM(1) page ππβ¨ go check those tablespace files, you got this π¦πΈ
π¦ where this page comes from
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
- centos-stream 10: mariadb11.8-server 3:11.8.8-1.el10 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- centos-stream 9: mariadb-server 3:11.8.8-1.module_el9+1370+ec5ecc2e Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- debian trixie: mariadb-server-core 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb11.8-server 3:11.8.8-1.fc43 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- fedora 43: mariadb12.3-server 3:12.3.2-2.fc43 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- fedora 44: mariadb-server 3:11.8.6-2.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- fedora 44: mariadb-server 3:11.8.8-3.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- fedora 44: mariadb12.3-server 3:12.3.2-2.fc44 Β· ( GPL-2.0-only OR Apache-2.0 ) AND ( GPL-2.0-or-later OR Apache-2.0 ) AND BSD-2-Clause AND BSD-3-Clause AND CC-BY-4.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ( GPL-3.0-or-later WITH Bison-exception-2.2 ) AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OpenSSL AND MIT AND OFL-1.1 AND CC0-1.0 AND PHP-3.0 AND PHP-3.01 AND zlib AND dtoa AND FSFAP AND blessing AND Info-ZIP AND Boehm-GC
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: mariadb 11.8.8-160000.1.1 Β· SUSE-GPL-2.0-with-FLOSS-exception
- opensuse-leap 16.0: mariadb 11.8.8-160000.1.1 Β· SUSE-GPL-2.0-with-FLOSS-exception
- opensuse-leap 16.0: mariadb 11.8.8-160000.1.1 Β· SUSE-GPL-2.0-with-FLOSS-exception
- opensuse-leap 16.0: mariadb 11.8.8-160000.1.1 Β· SUSE-GPL-2.0-with-FLOSS-exception
- ubuntu resolute: mariadb-server-core 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: mariadb-server-core 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms