Repair, optimize, rename, change collation, truncate, and drop tables in phpMyAdmin.
The Operations tab on a single table is where the maintenance commands live. Open a table in phpMyAdmin (left tree → database → table), then click Operations at the top.
phpMyAdmin Operations tab with all sections visible
Symptoms: queries error with “table is marked as crashed”, the table won’t open, or rows are reading back as garbage.
1
Click Repair table under Maintenance
Bottom-right of the Operations page, in the Table maintenance group.
2
Wait
For small tables it’s instant. For tables with millions of rows it can take a few minutes.
3
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.
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 on utf8_general_ci, moving to utf8mb4_unicode_ci for proper emoji support.
TRUNCATE deletes every row but keeps the table structure. Faster than DELETE FROM ... for big tables because it doesn’t go row-by-row.
1
Find Empty the table (TRUNCATE) under Delete data or table
Bottom-left of Operations.
2
Click it and confirm
A confirmation dialog appears. Type the table name to confirm.
3
Wait
Truncate is near-instant on most tables. Auto-increment counters reset to the starting value.
Truncate is irreversible. There’s no rollback even inside a transaction (in MySQL, TRUNCATE is implicitly committed). Take an export of the table first.
Drop removes the table and all its data permanently.
1
Find Delete the table (DROP)
Below Truncate, in the same red-tinted box.
2
Click and confirm
Type the table name to confirm. The table is gone.
No undo. If it’s a production table, take a JetBackup snapshot or a phpMyAdmin export first. The 30-second cost up front is much cheaper than the recovery you’d otherwise be doing.
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'
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'
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.