LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mysqlcheck

checks, repairs, and optimizes MySQL tables

TLDR

Check all tables in database
$ mysqlcheck -u [user] -p [database]
copy
Check all databases
$ mysqlcheck -u [user] -p --all-databases
copy
Repair tables
$ mysqlcheck -u [user] -p --repair [database]
copy
Optimize tables
$ mysqlcheck -u [user] -p --optimize [database]
copy
Analyze tables
$ mysqlcheck -u [user] -p --analyze [database]
copy
Check specific table
$ mysqlcheck -u [user] -p [database] [table]
copy
Auto repair
$ mysqlcheck -u [user] -p --auto-repair [database]
copy

SYNOPSIS

mysqlcheck [options] [database] [tables]

DESCRIPTION

mysqlcheck checks, repairs, and optimizes MySQL tables. It maintains database integrity.The tool runs CHECK, REPAIR, ANALYZE, and OPTIMIZE. Essential for database maintenance.

PARAMETERS

DATABASE

Database name.
TABLES
Specific tables to check.
--all-databases
Check all databases.
--repair
Repair corrupted tables.
--optimize
Optimize tables.
--analyze
Analyze tables.
--auto-repair
Auto repair issues.
--help
Display help information.

INSTALL

sudo apk add mariadb-client
copy
sudo zypper install mariadb-client
copy

CAVEATS

May lock tables. Backup before repair. Some engines don't support all operations.

HISTORY

mysqlcheck is part of the MySQL distribution for table maintenance and repair operations.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid