Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Use mysqlcheck to check and repair MySQL tables; mysqladmin cannot repair table data or indexes. Check the table first, save a backup, confirm its storage engine, and choose an engine-appropriate recovery method. MyISAM, ARCHIVE, and CSV tables can use mysqlcheck --repair or REPAIR TABLE. InnoDB tables require a rebuild or dump-and-reload instead.

mysqladmin and mysqlcheck do different jobs

The similar names cause much of the confusion. mysqladmin is a server-administration client. It can test whether the server is reachable, show server counters, list active threads, and coordinate operations such as flushing tables. It has no table-repair operation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

mysqlcheck is the table-maintenance client. It connects to a running mysqld instance and can check, repair, optimize, or analyze tables. Its repair capability depends on the table’s storage engine.

Question mysqladmin mysqlcheck
Primary purpose Server administration and diagnostics Table checking and maintenance
Typical actions ping, status, processlist, flush-tables, and server lifecycle commands Check, repair, optimize, or analyze tables
Repairs corrupted indexes or data No Yes, where the storage engine supports repair
Storage-engine limitation Not applicable because it does not repair tables --repair and REPAIR TABLE apply to MyISAM, ARCHIVE, and CSV
Scope Server-wide status or administration One table, selected databases, or all eligible databases
Operational impact Usually brief diagnostics; flushing can affect table availability Checks and repairs can lock tables and run for a long time, especially across whole databases
Recovery risk Does not change table contents through a repair command Repair can cause data loss in some circumstances, including file-system errors

Therefore, a command such as mysqladmin repair is not a valid solution. Use mysqladmin to understand server conditions, then use mysqlcheck or SQL maintenance statements for the table itself.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.

Prepare safely before touching a damaged table

Repair is a write operation, not a harmless diagnostic. The MySQL manual recommends making a backup first because a repair can lose data under some conditions. A logical dump is a practical safeguard:

mysqldump db_name table_name > table.sql

The dump should be usable before you proceed; in production operations, test restoring it separately rather than assuming that a file was created correctly. Keep the original backup even after a repair appears successful.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Confirm the server and client

Make sure you are connecting to the intended server and that the client tools are compatible with it. Check the client version with:

mysqlcheck --version
mysqladmin --version

Use the same host, port, account, and authentication settings you use for normal administration. Add options such as -h HOST or -P PORT when the server is not local.

Confirm the table’s storage engine

Run:

SHOW CREATE TABLE table_name;

Inspect the resulting ENGINE clause. Do not choose a repair command until you know whether the table is MyISAM, ARCHIVE, CSV, InnoDB, or another engine. The engine determines whether a repair operation is supported.

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth

Plan for locking and duration

Table maintenance can lock the table and block applications that need it. A single-table check is easier to schedule than an all-database operation. For large databases, estimate the impact, notify users, and run the command during a maintenance window. Do not assume that --quick makes a whole-database job instantaneous; it changes repair depth, not the number of tables selected.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check the table before attempting a repair

The default mysqlcheck operation is a check. Start with the smallest useful scope:

mysqlcheck -u USER -p DATABASE TABLE

You will be prompted for the password. Supplying the password interactively avoids putting it in the shell command history. Replace the uppercase names with the account, database, and table you actually need.

Check several databases

To check every table in named databases, use:

mysqlcheck --check --databases db1 db2

To check all databases, use:

mysqlcheck --check --all-databases

The all-databases form excludes INFORMATION_SCHEMA and performance_schema unless you explicitly name them. A broad check is useful after an outage, but it increases runtime and the number of tables that may be locked or delayed.

Use SQL when you need a server-side statement

The equivalent single-table diagnostic is:

CHECK TABLE table_name;

This is useful from a SQL session or an application maintenance script. It does not repair anything; it reports the table’s condition.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

Read every result column

CHECK TABLE reports fields such as status, error, info, note, and warning. A final row with status set to OK normally means that no fault was found by that check. A warning, note, or error deserves attention even when another row looks normal. Save the complete output, including the table name and message, before changing anything; it gives you a baseline for post-repair verification.

Use mysqladmin for diagnosis and coordination

Although it cannot repair a table, mysqladmin can tell you whether the server is healthy enough to investigate and whether another operation is already running.

Test availability

mysqladmin -u USER -p ping

A successful response confirms that the server is accepting connections. A failure points to availability, networking, authentication, or startup problems rather than proof of table corruption.

Capture a status snapshot

mysqladmin -u USER -p status

The status display includes uptime, threads, questions, slow queries, opens, flush tables, and open tables. Record it when a check is unexpectedly slow or the server is under load; those counters provide context for scheduling maintenance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

See active work

mysqladmin -u USER -p processlist

This lists active threads. Use it to see whether a long-running query, backup, or other maintenance job is competing with your check. Coordinate with the responsible operator before stopping anything.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

Flush tables only when you understand the effect

mysqladmin -u USER -p flush-tables

This flushes all tables. It can be useful as part of maintenance coordination, but it is not a repair and it does not rebuild a damaged index. Flushing can also disrupt concurrent activity, so run it only when your operational plan calls for it.

Repair MyISAM, ARCHIVE, and CSV tables

The repair method applies to MyISAM, ARCHIVE, and CSV tables. For one table, run:

mysqlcheck --repair -u USER -p DATABASE TABLE

The SQL form is:

REPAIR TABLE table_name;

Use the database-qualified command when you want every table in one database:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
mysqlcheck --repair -u USER -p --databases db_name

For all databases in scope, use:

mysqlcheck --repair -u USER -p --all-databases

Run a check again after the repair and compare the result with the original output. A successful command exit alone is not enough; the table should report a clean status in the follow-up check, and the application should be tested against the repaired data.

Choose the repair depth deliberately

  • Quick repair: mysqlcheck --quick --repair -u USER -p DATABASE TABLE takes the fastest repair path and attempts to repair only the index tree. It is appropriate when the evidence points to index damage and time is limited, but it is not a substitute for a full investigation.
  • Extended repair: mysqlcheck --extended --repair -u USER -p DATABASE TABLE performs a more thorough operation. It can take a long time and may produce garbage rows during repair, so preserve the backup and inspect the resulting data carefully.
  • Automatic repair after checking: mysqlcheck --auto-repair -u USER -p DATABASE TABLE checks first and repairs tables that are found to be corrupted. This is convenient for a controlled batch, but it can modify several tables without a separate approval step; use it only when that behavior is acceptable.

Do not combine a broad scope with the deepest mode casually. An extended, all-databases repair can hold locks and consume substantial time, while an automatic repair can change every table that the check flags.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Handle InnoDB tables with a different recovery path

REPAIR TABLE does not repair InnoDB. Running the command against an InnoDB table is the wrong recovery method, even if the table appears in a check report. Confirm the engine with SHOW CREATE TABLE, then choose a documented rebuild or a logical restore.

Rebuild the table in place

After confirming the engine and ensuring that you have a current backup, a rebuild can be requested with:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ALTER TABLE table_name ENGINE = InnoDB;

This recreates the table and its indexes through the InnoDB engine. It is a table-changing operation: it may require significant disk space, take considerable time, and block or otherwise affect access depending on the server version and operation details. Schedule it with the same care as any other structural change, then run a check and application-level validation.

Dump and reload when versions are involved

If the problem is tied to an incompatible server-version upgrade or downgrade, use the backup as the recovery source: export the table, create a clean destination under the target server, and reload the dump. A dump-and-reload path is slower than an in-place rebuild, but it avoids treating REPAIR TABLE as an InnoDB solution when the underlying issue is format or version compatibility.

What to do when a check reports corruption

The table is a supported repair engine

  1. Save the check output and make the logical dump.
  2. Confirm that the table is MyISAM, ARCHIVE, or CSV.
  3. Choose a single-table repair first, rather than repairing an entire database by default.
  4. Use standard repair unless you have a reason to select --quick, --extended, or --auto-repair.
  5. Run CHECK TABLE or mysqlcheck --check again and inspect all result fields.
  6. Test representative reads and writes from the application and retain the pre-repair dump.

The table is InnoDB

Do not retry REPAIR TABLE. Confirm the engine again, review the check output, and use the rebuild or dump-and-reload path. If the rebuild fails, preserve the original backup and involve the person responsible for the server version and storage environment before attempting additional writes.

The check says OK but the application still fails

An OK result means that this check did not find a table fault; it does not prove that every application problem is fixed. Keep the output, inspect the active process list and server status, and identify whether the failure is a connection, query, permission, or application issue. Avoid repeatedly repairing a table that already passes its check, because each repair is a write operation with its own risk.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The repair fails or produces unexpected rows

Stop treating the live table as the only copy. The extended mode can produce garbage rows during repair, and any repair can lose data in some circumstances. Compare the repaired table with the saved dump, preserve logs and command output, and restore into a separate test location first so that you can verify what data is recoverable before replacing the production copy.

Common command patterns

Task Command Purpose and caution
Check one table mysqlcheck -u USER -p DATABASE TABLE Default operation is a check; start here.
Check named databases mysqlcheck --check --databases db1 db2 Checks every table in the listed databases.
Check all databases mysqlcheck --check --all-databases Excludes INFORMATION_SCHEMA and performance_schema unless explicitly named.
Repair one supported table mysqlcheck --repair -u USER -p DATABASE TABLE Only for MyISAM, ARCHIVE, and CSV.
Repair with SQL REPAIR TABLE table_name; Same engine limitation; not an InnoDB repair.
Quick repair mysqlcheck --quick --repair -u USER -p DATABASE TABLE Targets the index tree and uses the fastest repair path.
Extended repair mysqlcheck --extended --repair -u USER -p DATABASE TABLE More thorough, potentially long-running, and may create garbage rows.
Check then repair flagged tables mysqlcheck --auto-repair -u USER -p DATABASE TABLE Automatically changes tables found to be corrupted.
InnoDB rebuild ALTER TABLE table_name ENGINE = InnoDB; Rebuild path after confirming the engine and backup.
Server availability mysqladmin -u USER -p ping Confirms that the server accepts connections; repairs nothing.
Server snapshot mysqladmin -u USER -p status Shows uptime and activity counters for planning.
Active threads mysqladmin -u USER -p processlist Shows concurrent work that may compete with maintenance.

A conservative decision sequence

  1. Is the server reachable? Use mysqladmin ping. Resolve connection or authentication problems before interpreting table symptoms.
  2. Which table and engine are involved? Use SHOW CREATE TABLE table_name; and record the complete definition.
  3. Do you have a restorable copy? Create mysqldump db_name table_name > table.sql and verify the backup independently.
  4. What does a check report? Run the narrowest useful mysqlcheck or CHECK TABLE command and save every status, error, note, and warning.
  5. Is repair supported? Use --repair only for MyISAM, ARCHIVE, or CSV. For InnoDB, select a rebuild or dump-and-reload.
  6. Can the operation run safely now? Check mysqladmin processlist, account for locks and duration, and schedule a maintenance window when necessary.
  7. Did the result improve? Recheck the table, validate application behavior, and retain the original dump and command output.

This sequence keeps diagnosis separate from modification, limits the scope of a potentially destructive action, and prevents a server-administration command from being mistaken for a table-repair tool.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.