This is the type of thing that generally occurs when there are filesystem problems, a server gets improperly shutdown (i.e. sudden power loss), or - sometimes - a bug in MariaDB itself.
You can use your favorite search engine (including search this forum - example) for some the repair / dump / restore scenarios that have worked for some people. However, you must identify the underlying cause. Otherwise youâre just treating symptoms and the problem will presumably return.
So:
- What version of MariaDB are you using?
- Have you had any improper shutdown events or locked up server situations?
- Are there any symptoms of hardware or software problems at the OS level?