I have upgraded mariadb to 10.5.8 to see if this fixed the issues, but it doesn’t.
It doesn’t say which index is corrupted:
MariaDB [matomo]> ALTER TABLE matomo.matomo_log_hsr_event ENGINE=innodb;
ERROR 1034 (HY000): Index for table 'matomo_log_hsr_event' is corrupt; try to repair it
MariaDB [matomo]> check table matomo_log_hsr_event;
+-----------------------------+-------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+-----------------------------+-------+----------+----------+
| matomo.matomo_log_hsr_event | check | status | OK |
+-----------------------------+-------+----------+----------+
1 row in set (19.226 sec)
MariaDB [matomo]> check table matomo_log_hsr_event extended;
+-----------------------------+-------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+-----------------------------+-------+----------+----------+
| matomo.matomo_log_hsr_event | check | status | OK |
+-----------------------------+-------+----------+----------+
1 row in set (19.002 sec)
I can list the indexes but nothing else:
+----------------------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+----------------------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| matomo_log_hsr_event | 0 | PRIMARY | 1 | idhsrevent | A | 8675484 | NULL | NULL | | BTREE | | |
| matomo_log_hsr_event | 1 | idloghsr | 1 | idloghsr | A | 27281 | NULL | NULL | | BTREE | | |
| matomo_log_hsr_event | 1 | idhsrblob | 1 | idhsrblob | A | 192788 | NULL | NULL | YES | BTREE | | |
+----------------------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
I dont mind to recreate all the indexes, but I don’t have the DDLs