

Repair a corrupted table
Symptoms: queries error with “table is marked as crashed”, the table won’t open, or rows are reading back as garbage.Click Repair table under Maintenance
Bottom-right of the Operations page, in the Table maintenance group.
Read the result
Successful repair shows
OK under the Msg_text column. If it doesn’t, check the common issues below.InnoDB tables don’t need repair. The engine handles its own crash recovery automatically. The Repair button is a no-op for InnoDB. It’s only useful for legacy MyISAM and Aria tables.
Optimize a table
Optimize rebuilds the storage layout, freeing up space left behind by deleted rows. Worth running:- After a big bulk delete
- On heavily-updated tables once a quarter
- Never on InnoDB unless you’re tight on disk space
Rename a table
Change collation
Collation controls how text columns sort and compare, especially for non-ASCII characters. Change the table-level default in Table options → Collation, then click Go. To change collation on existing columns (not just new ones), tick Change all column collations in the same section. The most common change: legacy WordPress installs onutf8_general_ci, moving to utf8mb4_unicode_ci for proper emoji support.
Truncate (empty without dropping)
TRUNCATE deletes every row but keeps the table structure. Faster than DELETE FROM ... for big tables because it doesn’t go row-by-row.
Drop a table
Drop removes the table and all its data permanently.Copy a table
Useful for staging changes. Copyorders to orders_backup_20260427, run your migration on the live orders, and you have a fast rollback target.
Pick database and new name
The copy can stay in the same database or land in another. Same database + a new name is the common case.
Pick what to copy
- Structure only: empty copy with the same columns and indexes
- Data only: copy rows into an existing table (rare)
- Structure and data: full copy
Common issues
Repair table fails with 'Can't create new tempfile'
Repair table fails with 'Can't create new tempfile'
The table is too large to repair on the available disk space (repair needs to write a temp copy alongside the original). Either increase disk through your plan, or open a ticket and we’ll repair it from the server side where we have more headroom.
Rename fails with 'Errcode: 13 - Permission denied'
Rename fails with 'Errcode: 13 - Permission denied'
File-system permissions on the database directory got out of sync, usually after a botched restore. Fixing this needs root access, so open a support ticket.
Optimize on InnoDB shows 'Table does not support optimize, doing recreate + analyze instead'
Optimize on InnoDB shows 'Table does not support optimize, doing recreate + analyze instead'
That’s expected. InnoDB doesn’t have an in-place optimize, so the engine does a full rebuild plus statistics refresh. Functionally equivalent to optimize, just longer.

