ARIA_CHK(1)
β¨ aria_chk β the Aria table-maintenance utility β¨
okay bestie, welcome to aria_chk(1) π
this is the User Commands section and she is that girl for Aria tables. buckle up.
π SYNOPSIS π
aria_chk [OPTIONS] tables[.MAI]
π DESCRIPTION π
So like β describing, checking, and repairing Aria tables. that's the whole vibe. and the plot twist? if you run it with no options at all, every table you name on the command line gets checked for errors. main character energy fr fr π«Ά
πΈ Global options πΈ
-#,--debug=...β dump a debug log. usually it's liked:t:o,filename.-H,--HELPβ print every argument option, sorted alphabetically. very organized of her.-?,--helpβ print all the options, but grouped. (yes, there are two help flags. she contains multitudes π)--datadir=pathβ the path for the control file (and also for logs, if you're not using--logdir).--logdir=pathβ path for log files.--ignore-control-fileβ don't open the control file.
β οΈ ONLY use this if you are sure the tables aren't in use by another program! no cap, that's the whole warning.
--require-control-fileβ abort if we can't find or read themaria_log_controlfile.-s,--silentβ only print errors. and you can stack two-sto makemaria_chkvery silent. like, so quiet. shhh π€«-t,--tmpdir=pathβ path for temporary files. you can specify multiple paths separated by a colon (:), and they get used round-robin style. cute.-v,--verboseβ print more info. plays nice with--descriptionand--check. stack lots of-vfor maximum verbosity β¨-V,--versionβ print the version and dip. bye π-w,--waitβ wait if the table is locked. patient queen.
π₯ Check options (check is the default action for aria_chk) π₯
-c,--checkβ check the table for errors. the classic.-e,--extend-checkβ check the table VERY thoroughly. only do this in extreme cases, becausearia_chkshould normally be able to tell if the table is ok without this switch. it's giving overkill π-F,--fastβ only check tables that haven't been closed properly.-C,--check-only-changedβ only check tables that have changed since the last check.-f,--forceβ restart with-rif there are any errors in the table. states get updated just like with--update-state.-i,--informationβ print statistics info about the table being checked.-m,--medium-checkβ faster than extend-check, but it only finds 99.99% of all errors. should be good enough for most cases tbh.-T,--read-onlyβ don't mark the table as checked.-U,--update-stateβ mark tables as crashed if any errors were found, and clean if the check found no errors but the table was marked'not clean'before. this lets you get rid of warnings like'table not properly closed'. and if the table was updated, it also updates the timestamp for when the check was made. this option is on by default! use--skip-update-stateto turn it off π--warning-for-wrong-transaction-idβ give a warning if we find a transaction id in the table that's bigger than what exists in the control file. use--skip-...to disable the warning.
π¦ Recover (repair) options (when using --recover or --safe-recover) π¦
-B,--backupβ make a backup of the.MADfile as'filename-time.BAK'.--correct-checksumβ correct checksum information for the table.-D,--data-file-length=#β max length of the data file (used when recreating the data file when it's full).-e,--extend-checkβ try to recover every possible row from the data file. normally this will also find a lot of garbage rows, so don't use this option if you're not totally desperate. seriously. desperate desperate π-f,--forceβ overwrite old temporary files.-k,--keys-used=#β tell Aria to update only some specific keys.#is a bit mask of which keys to use. handy for faster inserts π--max-record-length=#β skip rows bigger than this ifaria_chkcan't allocate memory to hold them.-r,--recoverβ can fix almost anything except unique keys that aren't unique. almost. not all. π-n,--sort-recoverβ forces recovering with sorting, even if the temporary file would be very big.-p,--parallel-recoverβ uses the same technique as-rand-n, but creates all the keys in parallel, in different threads. multitasking icon β¨-o,--safe-recoverβ uses the old recovery method. slower than-r, but it can handle a couple of cases where-rreports that it can't fix the data file.--transaction-logβ log the repair command to the transaction log. this is needed if you want to usearia_read_logto repeat the repair.--character-sets-dir=...β directory where character sets live.--set-collation=nameβ change the collation used by the index.-q,--quickβ faster repair, because it doesn't modify the data file. you can give a second-qto forcearia_chkto modify the original datafile in case of duplicate keys.
β οΈ NOTE: tables where the data file is corrupted can't be fixed with this option.
-u,--unpackβ unpack a file packed withariapack.
π§ Other actions π§
-a,--analyzeβ analyze the distribution of keys. this will make some joins in MariaDB faster. you can check the calculated distribution by using'--description --verbose table_name'.--stats_method=nameβ specifies how the index statistics collection code should treat NULLs. possible values ofnameare"nulls_unequal"(default for 4.1/5.0),"nulls_equal"(emulate 4.0), and"nulls_ignored".-d,--descriptionβ prints some information about the table.-A,--set-auto-increment[=value]β forceauto_incrementto start at this value or higher. if no value is given, then it sets the nextauto_incrementvalue to the highest used value for the auto key + 1.-S,--sort-indexβ sort index blocks. this speeds up'read-next'in applications.-R,--sort-records=#β sort records according to an index. this makes your data much more localized and may speed things up. (it may be VERY slow to do a sort the first time!)-b,--block-search=#β find a record, a block at a given offset belongs to.-z,--zerofillβ fill empty space in data and index files with zeroes. this makes the data file movable between different servers. βοΈ--zerofill-keep-lsnβ like--zerofill, but does not zero out the LSN of data/index pages.
π Variables π
--page_buffer_size=#β size of the page buffer. used by--safe-repair.--read_buffer_size=#β read buffer size for sequential reads during scanning.--sort_buffer_size=#β size of the sort buffer. used by--recover.--sort_key_blocks=#β internal buffer for sorting keys. don't touch. π--write_buffer_size=#β write buffer size for sequential writes during repair.
Default options get read from the following files, in the given order:
/etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf
The following groups are read: aria_chk
The following options may be given as the first argument:
--print-defaultsβ print the program argument list and exit.--no-defaultsβ don't read default options from any option file.--defaults-file=#β only read default options from the given file#.--defaults-extra-file=#β read this file after the global files are read.
π SEE ALSO π
For more information, please refer to the MariaDB Documentation, available online at <https://mariadb.com/docs/> β well, that's where it lives, anyway. iykyk π«Ά
and that's the whole page, bestie!! π this was aria_chk Ver 1.2, from May 2014, filed under User Commands, and honestly? she ate. go check those tables. slay πβ¨π¦
π¦ where this page comes from
- alpine 3.22: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.23: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- 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: mariadb-server 3:10.11.18-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 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 bookworm: mariadb-server 1:10.11.18-0+deb12u1 Β· GPL-2.0-only
- debian bookworm: mariadb-server 1:10.11.19-0+deb12u1 Β· GPL-2.0-only
- debian trixie: mariadb-server 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb-server 3:10.11.18-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 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: mariadb10.11-server 3:10.11.16-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: mariadb10.11-server 3:10.11.18-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: 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 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: mariadb-server 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: mariadb-server 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms