To enable remote database creation in H2, you need to start the H2 server and configure it to allow remote connections.
Here's an example of how you can do this:
./h2.sh
Now the H2 server will allow remote connections and you should be able to create databases remotely using the H2 Console or a JDBC client.
Note that by default, the H2 server listens on port 8082 and only allows connections from localhost. You can change these settings by specifying the -webPort
and -webAllowOthers
options when starting the server. For example:
./h2.sh -webPort 8888 -webAllowOthers
This will start the H2 server on port 8888 and allow connections from any host.