Axon server is not starting as h2 file corrupted

I got this error multiple times. Could not get a working solution from anywhere. .org.h2.jdbc.JdbcSQLException: File corrupted while reading record: null. Possible solution: use the recovery tool [90030-197].

Please provide the steps to recover and reboot Axon server

Which version of Axon Server are you using?

The H2 database is used by Axon Server to store configuration information. It does not contain the events. If you did not define users and applications, you can delete the h2 database and let Axon Server recreate it.

if this is version 2024.0.x, the configuration database is in data/axonserver-configdb.mv.db, for earlier versions it is in data/axonserver-controldb.mv.db.