Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error "is not BASE TABLE" on repairing corrupted table

Tags:

mysql

heidisql

One of my tables got corrupted, so, in order to correct, I used the interface of HeidiSql. The problem is that during the process of repair, my connection to the internet was losted, and now the HeidiSQL throws me the error "is not BASE TABLE" if I try to repair.

PPS: HeidiSQL says that mine table is a View

like image 993
Luis Avatar asked Oct 19 '25 20:10

Luis


1 Answers

Usually the problem with "is not BASE TABLE" is that the "table" you are trying to modify is not a table, it's a "view".

To confirm that, you can launch:

SHOW FULL TABLES IN dbname WHERE TABLE_TYPE LIKE 'VIEW';

If the table you are trying to repair appears here, bingo! it's a view.

If you are using MariaDB 10.X or above, you can try

REPAIR VIEW table_name;
like image 86
Oriol Tauleria Avatar answered Oct 22 '25 05:10

Oriol Tauleria



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!