Updated: 13 November 2026 · Applies to: DirectAdmin (Evolution skin), MariaDB and MySQL

Open MySQL Management, click the database, then click Repair in Database Operations: this rebuilds damaged MyISAM and Aria table files after an error such as "table is marked as crashed" or "table doesn't exist in engine".

Steps

  1. Log in to DirectAdmin (usually https://your-server:2222; the address is in your welcome email).
  2. Open User Level > MySQL Management and click (or Manage) the database.
  3. In the Database Operations section, click Repair.

DirectAdmin runs the equivalent of REPAIR TABLE against every table in that database. On a table that is already healthy, the result is simply "OK" with nothing changed.

Why repair fixes a "crashed" table but not every error

Repair rebuilds the table's on-disk file structure, it does not restore missing or wrong data. If a row was deleted by a buggy script or an application wrote bad data, Repair will not bring that back; only a backup can. Run it when MySQL itself reports the table as damaged (crashed, in need of repair, or corrupt), not as a general fix for an application behaving oddly.

MyISAM and Aria recover this way; InnoDB does not need it

Repair applies to MyISAM and the older Aria storage engines, which can leave a table in a half-written state after an unclean shutdown or a disk problem. InnoDB tables (the default engine on current MariaDB and MySQL) use crash recovery automatically on startup and keep their own internal consistency checks, so Repair does nothing useful on them. If an InnoDB table itself reports corruption, in testing on MariaDB 11.4 OPTIMIZE TABLE against an InnoDB table responds with the note "Table does not support optimize, doing recreate + analyze instead" and rebuilds it that way; if that still fails, contact support, since it usually points to a disk or storage problem rather than something Repair can fix.

Before you run Repair

Download a backup of the database first. Repair is safe on a genuinely damaged table, but back up anyway in case the underlying cause (a failing disk, a bad shutdown) has also affected other tables you have not noticed yet.

Checking user privileges on the same database is covered in modifying user privileges for a database in DirectAdmin; for routine maintenance rather than repair, see optimising or analysing a database in DirectAdmin. The same repair, run from the command line instead of the panel, is in auto repairing a MySQL database table with a command.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Managed cPanel VPS

cPanel included; we handle updates, security and monitoring.

Server management

on-demand administration, hardening, migrations and monitoring.

Was this answer helpful?

Still stuck? Open a ticket