Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
VGSOURCES
Get listed

database repairPATCH 2026.10.15

How to Repair MySQL Tables With mysqladmin and mysqlcheck

By VGSources Team 9 min read

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.

Use mysqlcheck to check and repair tables; mysqladmin cannot repair table data or indexes. The repair command works only with MyISAM, ARCHIVE, and CSV tables. InnoDB tables can be checked, but they require an engine rebuild or a dump-and-reload rather than REPAIR TABLE.

Back up the affected table, confirm its storage engine, run a check, interpret the result, and choose the least invasive supported recovery method. Table maintenance can lock tables and take significant time, especially when you scan or repair an entire database.

As an Amazon Associate I earn from qualifying purchases.

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

What each client actually does

The similar names cause most mistakes. mysqladmin is a server-administration client. It reports whether the server is reachable, displays status and process information, flushes tables, and performs other administrative or lifecycle operations. It has no table-repair operation.

mysqlcheck is the table-maintenance client. It can check, repair, optimize, and analyze tables while mysqld is running. Its default operation is a check, so a command that omits an operation flag does not silently repair anything.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses | Anti UV Ray, For Computers & Gaming, Square Frame, Eyewear for Men and Women
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
Command or method Primary purpose Repair support Typical scope Operational effect
mysqladmin Server administration and diagnosis None Server, connections, threads, table flushing Usually quick for status queries; flushing can affect active work
mysqlcheck Table checks and maintenance MyISAM, ARCHIVE, and CSV One table, named databases, or all databases Maintenance operations lock tables and may run for a long time
REPAIR TABLE SQL repair operation MyISAM, ARCHIVE, and CSV only One table per statement Can be disruptive and can cause data loss in some circumstances
ALTER TABLE ... ENGINE = InnoDB Rebuild an InnoDB table InnoDB rebuild path, not a repair command One table per statement Requires a table rebuild and therefore planning for locks and elapsed time

Before repairing: identify the server, engine, and recovery point

Confirm that the server is available

Run a lightweight availability test before attempting maintenance:

mysqladmin ping -u USER -p

A successful response confirms that the server is accepting the connection attempt. A failed response is a server-availability problem to resolve before diagnosing a table; changing repair flags will not help a client that cannot reach mysqld.

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.

Confirm client and server versions

Record the MySQL client version and the server version shown by your normal SQL session before changing a table. Version context matters when corruption appears after an upgrade or downgrade, because a dump-and-reload can be preferable to an in-place operation in that situation. Keep the recorded versions with the incident notes so a restore can be reproduced.

Inspect the table definition

When the storage engine is not certain, ask the server directly:

SHOW CREATE TABLE table_name;

Read the ENGINE clause in the returned definition. Do not issue REPAIR TABLE until that value is known. The repair method is limited to MyISAM, ARCHIVE, and CSV; applying it to InnoDB is the wrong recovery path.

Make a logical backup first

The MySQL manual advises making a backup before a table repair because the operation can cause data loss under some circumstances, including file-system errors. A practical safeguard for one table is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
mysqldump db_name table_name > table.sql

Store the dump somewhere separate from the live table. In a production procedure, test that the dump can be restored in a separate environment rather than assuming that a file created by mysqldump is usable. Do not overwrite the only copy of the original table while experimenting with repair options.

Check one table with mysqlcheck

Start with a check, not a repair:

mysqlcheck -u USER -p DATABASE TABLE

Replace USER, DATABASE, and TABLE with the actual connection and object names. Because --check is the default operation, the explicit equivalent is:

mysqlcheck --check -u USER -p DATABASE TABLE

Enter the password when prompted. Checking first gives you an engine-specific result and avoids modifying a healthy table.

Check every table in selected databases

To check all tables in two named databases, supply the database names after the --databases option:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
mysqlcheck --check --databases db1 db2

This is broader than a single-table check and can hold table resources for considerably longer. Schedule it for a maintenance window when the databases are busy.

Check all databases

For a server-wide check, use:

mysqlcheck --check --all-databases

This scope includes all databases except INFORMATION_SCHEMA and performance_schema, unless you explicitly name those schemas. A server-wide check may take much longer than checking the table named in an error report, so begin narrowly when you already know the affected object.

Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men | Office Gifts for Women, iPhone Stand, Gadgets for Men, Office Decor, Gaming Desk Accessories for Samsung Fold 8, Switch, iPad
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

How to read CHECK TABLE output

The check reports fields such as status, error, info, note, and warning. Read the final status for each table rather than treating any informational line as proof of corruption.

  • status: the final state reported for the table. A final OK normally means that no fault was found by that check.
  • error: the problem that the server detected and the field to use when deciding whether repair is appropriate.
  • info: additional diagnostic context about what was examined.
  • note and warning: messages that may require attention even when the final status is not an outright error.

Save the complete output before proceeding. It provides a before-and-after record and helps distinguish a table that was already damaged from one changed by a later operation.

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

Repair MyISAM, ARCHIVE, or CSV tables

After confirming that the table uses a supported engine and that the backup is available, run:

mysqlcheck --repair -u USER -p DATABASE TABLE

The SQL equivalent for one table is:

REPAIR TABLE table_name;

Both methods are restricted to MyISAM, ARCHIVE, and CSV. They are not general-purpose recovery commands for every MySQL engine.

Repair every table in one database

mysqlcheck --repair --databases db_name

This attempts repair on the tables in the named database. Verify the resulting output for each table; one successful repair does not establish that every table was healthy.

Repair every eligible table on the server

mysqlcheck --repair --all-databases

The all-databases scope follows the same exclusion rule as checking: INFORMATION_SCHEMA and performance_schema are excluded unless explicitly named. A server-wide repair creates the largest lock and time window, so use it only when the scope is intentional and the backup plan covers all affected data.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

Choose the repair depth deliberately

--quick: the fastest attempt

mysqlcheck --quick --repair -u USER -p DATABASE TABLE

--quick attempts to repair only the index tree. It is useful when speed and a minimal first intervention matter, but it is not the thorough option. If the check still reports a fault, stop and reassess rather than repeatedly applying the same quick operation.

--extended: a more thorough operation

mysqlcheck --extended --repair -u USER -p DATABASE TABLE

--extended performs a more thorough operation and can take a long time. The manual’s “100% consistent” wording for extended checking describes the mode’s consistency guarantee; it is not a measured real-world success rate. Extended repair may produce garbage rows while it works, which is another reason to preserve the pre-repair dump and validate the result afterward.

--auto-repair: check, then repair failures

mysqlcheck --auto-repair -u USER -p DATABASE TABLE

--auto-repair checks first and repairs tables that are reported as corrupted. It is convenient for a planned batch, but it still modifies data and carries the same backup and locking risks as an explicit repair. Use it only when the set of tables and the allowed maintenance window are clear.

What to do with InnoDB corruption

REPAIR TABLE does not repair InnoDB. You can still check an InnoDB table with mysqlcheck, but a reported problem requires an InnoDB-specific recovery plan.

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

Rebuild the table after confirming the engine

For an InnoDB table where a documented rebuild is appropriate, use:

ALTER TABLE table_name ENGINE = InnoDB;

This rebuilds the table and its indexes through the InnoDB engine. Confirm the engine with SHOW CREATE TABLE first, take the backup described earlier, and plan for the rebuild’s locks and runtime. A rebuild is not a guarantee that every form of underlying damage can be recovered; treat the result as a new state to check and validate.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

Dump and reload after incompatible version changes

When the issue is tied to an incompatible server-version upgrade or downgrade, dump and reload can be the safer documented route. Preserve the logical dump, create a clean target table or instance compatible with the intended server version, reload the data, and then run a fresh check. Keep the original table untouched until the restored copy has been validated.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use mysqladmin to diagnose and coordinate maintenance

mysqladmin cannot substitute for mysqlcheck, but its administrative commands help establish whether maintenance can proceed and what the server is doing.

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

Check availability with ping

mysqladmin ping -u USER -p

Use this before a check or repair to separate a connection problem from a table problem.

Review server status

mysqladmin status -u USER -p

The status output includes uptime, threads, questions, slow queries, opens, flush tables, and open tables. These counters provide context for whether the server is busy and whether a maintenance window is realistic; they do not identify or repair a corrupt table.

Inspect active work with processlist

mysqladmin processlist -u USER -p

Review active threads before starting a broad check or repair. Long-running queries and application traffic can compete with table maintenance, increase waiting time, or make an unexpected lock more disruptive.

Flush tables only when administration requires it

mysqladmin flush-tables -u USER -p

This flushes all tables. It does not check indexes, remove corruption, or perform a repair. Treat it as an administrative coordination step and confirm that applications can tolerate its effect before using it.

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

Locks, downtime, and scope decisions

Table maintenance locks tables and may be time-consuming. The risk grows with the scope: one table is easier to schedule and validate than every table in a database, and a server-wide operation has the broadest impact.

  • Start narrow: check the table named in the error report before scanning unrelated schemas.
  • Use a maintenance window: schedule repairs when application traffic is low and operators can observe progress.
  • Watch active work: use mysqladmin processlist before and during a broad operation.
  • Preserve the original: keep the logical dump until the repaired or rebuilt table passes its post-operation checks.
  • Validate after modification: run mysqlcheck --check again and compare the output with the saved pre-repair result.

A practical decision path

  1. The server is unreachable: use mysqladmin ping to confirm the availability problem, then restore connectivity before attempting table maintenance.
  2. The table has not been identified: inspect the reported database and run SHOW CREATE TABLE table_name; to establish the storage engine.
  3. The table is healthy: if the final check status is OK, do not run a repair merely as a precaution. Investigate the application or file-system symptom that prompted the check.
  4. The table is MyISAM, ARCHIVE, or CSV and is reported corrupt: preserve the dump, then use mysqlcheck --repair or REPAIR TABLE. Choose --quick, --extended, or --auto-repair according to the required depth and maintenance window.
  5. The table is InnoDB: do not use REPAIR TABLE. Use a documented ALTER TABLE ... ENGINE = InnoDB rebuild when appropriate, or dump and reload when a server-version compatibility issue is involved.
  6. The repair reports additional errors or unacceptable data loss: stop modifying the original, retain the pre-repair dump, and recover from the validated backup or reload path rather than repeating increasingly aggressive repairs.

Post-repair validation checklist

  • Run a fresh check on the repaired or rebuilt table.
  • Confirm that the final status is OK and review every warning or note.
  • Compare row counts and important application queries with the pre-repair record.
  • Confirm that indexes and constraints expected by the table definition are present.
  • Keep the original dump until normal application traffic has completed a validation period.
  • Document the engine, command, options, version context, start and finish times, output, and any observed data loss.

Common mistakes to avoid

  • Using mysqladmin for repair: it administers the server but has no table-repair function.
  • Skipping the engine check: REPAIR TABLE is limited to MyISAM, ARCHIVE, and CSV.
  • Repairing without a backup: repair can cause data loss in some circumstances.
  • Starting with all databases: a broad operation increases lock duration and makes validation harder; begin with the known table.
  • Treating a status query as a health check: mysqladmin status describes server activity, not table integrity.
  • Assuming a successful command means complete recovery: always run a post-operation check and validate application data.

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.

database repairInnoDBMyISAMMySQLmysqladminmysqlcheck

Leave a reply

Your email address will not be published. Required fields are marked *

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

Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.