0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[H2 Console] 削除した保存済設定を元に戻す方法

Last updated at Posted at 2020-12-13

ケース

H2 Consoleで削除ボタンを押して保存済設定(Generic H2 (Embedded))が消えてしまった場合に、元に戻す方法。
(私の場合データベースを削除しようとして、間違って削除ボタンを押してこうなりました...(汗))
H2_Console1.png

結論

設定名に「Generic H2 (Embedded)」を入力して「保存」ボタンを押せば復活します。
H2_Console2.png

おまけ

ちなみにデータベースを削除したい場合は、以下の方法でできるようです。
http://yoks.blue.coocan.jp/TechNote/H2/H2_ope2.htm
(リンク先で「drop database」を検索すれば該当箇所に飛べます)

-- 追記 --
・自動作成されるファイル名がリンク先のものと異なるかもしれません。
(私の場合だとデータベース名.mv.dbなどが作成される)
・またDROP ALL OBJECTS DELETE FILES;の場合、
ファイルの削除はコマンド実行後、データベースを切断したときに行われます。
https://www.h2database.com/html/commands.html#drop_all_objects

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?