Failed to connect to database: org.h2.jdbc.JdbcSQLException

Here's a process I would try to follow (apologies up front for the slightly :smiling_imp: sarcastic tone):

  1. :scream: Unless you're Chuck Norris (see #7)
  2. Make a backup copy ... no make that two ... one in a separate folder to experiment on ... and another one tucked away in a safe place ....of your presumably broken Metabase H2 database. (It's probably named metabase.db.mv.db) - perform all following steps on that first experiment copy of the file.
  3. "Install H2" - meaning place a copy of h2-<something>.jar - from http://www.h2database.com in your experiment folder.
  4. Try to see if e.g. other experiences already shared in this forum works -
    e.g. a quick search turned up: Unable to connect to Metabase h2 DB - #2 by eduavencama
  5. If the previous step didn't work, try your luck with the H2 recover tool
  6. depending on the outcome of the previous step (which I haven't tried myself, because I don't currently own a broken H2 database) try gently salvaging - either by starting a copy of metabase.jar in your experiment folder on the repaired H2 database or otherwise manually ... extract/dump whatever can be extracted.
  7. Now go and revise and follow your procedures regarding backup - including making sure that you can actually work with data you restore.
  8. Share your experiences here in http://discourse.metabase.com