Setup password for H2

后端 未结 1 1326
时光取名叫无心
时光取名叫无心 2021-02-20 09:35

How to set up my own password for accessing the h2 while working in embedded mode?

(if anyone confused - talking about the root password for accessing the database)

相关标签:
1条回答
  • 2021-02-20 10:18

    Oh I guess life is not that bad :-).

    Found on:

    http://www.h2database.com/html/grammar.html#alter_user_set_password

    To change it we obviously have to be able to connect to database(know username and password), as I said these are the ones we use during connection set up.

    Then create simillar sql snippet ALTER USER admin SET PASSWORD 'superPw';

    I personally believe these high level operations have to be allowed to be done in wizards. Hope this helps.

    0 讨论(0)
提交回复
热议问题