Ok, been noticing that my Database has been growing rapidly over the past 2 months and just now decided to look at the logs (face slap) :
2025-05-08 4:12:09 91 [ERROR] mysqld: Index for table 'states' is corrupt; try to repair it
2025-05-08 4:12:09 91 [ERROR] mysqld: Index for table 'states' is corrupt; try to repair it
2025-05-09 4:12:08 91 [ERROR] InnoDB: We detected index corruption in an InnoDB type table. You have to dump + drop + reimport the table or, in a case of widespread corruption, dump all InnoDB tables and recreate the whole tablespace. If the mariadbd server crashes after the startup or when you dump the tables. Please refer to https://mariadb.com/kb/en/library/innodb-recovery-modes/ for information about forcing recovery.
Do I really care about history? I don’t think so. Am I wrong?
Can I just blow it up and start new?
Does the db contain more than just history? (like config settings, automations, integrations, devices, etc?
I found instructions on how to fix the database, but I don’t even know how to get into a ‘SQL Prompt’ to do any of that:
Or even where to set these ‘Recovery Modes’:
So, yeah, I’m thinking just blow up the database and start fresh unless that’s a really bad idea. Otherwise how would I best do that?
Thanks!