On 2013-07-02 15:00, Davide Cavestro wrote:

I'd like to know if there's*a way to check for db corruption at startup (without waiting 5 or 10 minutes): if the database is corrupted I'd like to drop it entirely and create a new one*. It would be very useful having a


You could try opening it in read-only mode.
A corrupt DB will cause an exception, and then you can delete it and re-create it. If the read-only open succeeds, close it, and open it again in read-write mode.

Also note that LOG=0 is extremely dangerous for production use - you use it at your own risk.

--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to