Web-en

PHPMyAdmin table content not displaying, table marked as crashed and should be repaired, client hasn’t closed the table properly – MyISAM tables

After an operation on the MySQL database with PHPMyAdmin, for example complicated search queries that didn’t bring any result and crashed, it might happen that the database isn’t accessible anymore. At this point, when trying to open a table, no content is displayed.

PHPMyAdmin table content not displaying, table marked as crashed and should be repaired, client hasn't closed the table properly - MyISAM tables : Table content not getting displayed
Table content not getting displayed

The first step is to check the mysql_error.log file – in XAMPP, it is accessible via the control panel, in MySQL > Logs > mysql_error.log

PHPMyAdmin table content not displaying, table marked as crashed and should be repaired, client hasn't closed the table properly - MyISAM tables : MySQL error log in XAMPP control panel
MySQL error log in XAMPP control panel

Error might look as the following :

Table abcd is marked as crashed and should be repaired

1 client is using or hasn't closed the table properly

PHPMyAdmin table content not displaying, table marked as crashed and should be repaired, client hasn't closed the table properly - MyISAM tables : MySQL error log
MySQL error log

At this point, the solution depends on the database engine.

For MyISAM tables, see below. For InnoDB, see this specific article.

With MyISAM tables, go to the table structures of the specified database.

PHPMyAdmin table content not displaying, table marked as crashed and should be repaired, client hasn't closed the table properly - MyISAM tables : Opening table structure
Opening table structure

There, select the tables to repair by checking the corresponding boxes, and simply select the Repair option.

PHPMyAdmin table content not displaying, table marked as crashed and should be repaired, client hasn't closed the table properly - MyISAM tables : Select broken tables and do a repair operation
Select broken tables and do a repair operation

After getting the operation success message, the tables should be accessible again.

PHPMyAdmin table content not displaying, table marked as crashed and should be repaired, client hasn't closed the table properly - MyISAM tables : Tables repair operation success message
Tables repair operation success message