Updating File password

53 views
Skip to first unread message

Swapnil Dhavale

unread,
Apr 18, 2022, 1:21:26 PM4/18/22
to H2 Database
Hello,

I have updated the user password using -> ALTER USER SA SET PASSWORD 'rioyxlgt' command in sql script file.
I also need to update my file password using sql script file. Do we have any specific command like ALTER for updating the file password as well?

Maybe someone can help me out with setting the File Password for H2Db.

Thank You

Evgenij Ryazanov

unread,
Apr 18, 2022, 9:02:42 PM4/18/22
to H2 Database
Hello.

java -cp h2-*.jar org.h2.tools.ChangeFileEncryption -dir <directory> -db <database name> -cipher AES -decrypt <old password> -encrypt <new password>
is the tool you need.

Database shouldn't be opened anywhere when this command is launched.
Reply all
Reply to author
Forward
0 new messages