dnivog
dnivog

Reputation: 123

Changing the location of H2 database configration file?

H2 database manual says:

The settings of the H2 Console are stored in a configuration file called .h2.server.properties in you user home directory.

Is there any way to change the location of the configuration file to some specified directory?

Upvotes: 1

Views: 1819

Answers (1)

Thomas Mueller
Thomas Mueller

Reputation: 50147

You can use the -properties setting as documented in the Server tool, as follows:

java -jar h2.jar -properties "/directory"

Upvotes: 1

Related Questions