I experienced this so started to look into it
SHOW CREATE TABLE tablexyz;
This produced something like
HEADER RESULT NAMES
View, Create View, character_set_client, collation_connection
And in the second column contained:
CREATE ALGORITHM=UNDEFINED DEFINER=`%someone%`@`%some_ol_host_name%`
SQL SECURITY DEFINER
VIEW `tablexyz`.`view_tablexyz` AS
SELECT `tablexyz`.`some_column_name`,
`tablexyz`.`some_more_column_names`
FROM `tablexyz`
JOIN `tableabc` ON `tablexyz`.`id` = `tableabc`.`id`
WHERE `tablexyz`.`some_column_names` = 'somevalues'
GROUP BY `tablexyz`.`some_column_names`;
For me... Well Turned out to be nothing but a view.
One last thing to note:
USE tablexyz;
ANALYZE TABLE tablexyz; -- Corrupt
CHECK TABLE tablexyz; -- OK
REPAIR TABLE tablexyz; -- Corrupt
Check table will provide a false positive as messages are inconsistent.
ANALYZE TABLE & REPAIR TABLE state that the table is corrupted even though it is a view.
And CHECK TABLE
says the table is OK
# Table, Op, Msg_type, Msg_text
'tablexyz.tablexyz_view', 'check', 'status', 'OK'
Thought it odd but seems ok per the documentation
Cheers,
Jay