Standalone H2 Console does not allow creation of new databases from a web 
interface any more for security reasons. To create an in-memory database 
right-click on a system tray icon, choose Create a new database…, specify 
something like
mem:1;DB_CLOSE_DELAY=-1
instead of database path and set some password for it.
After creation you can use web interface with url
jdbc:h2:mem:1
Use SHUTDOWN command to delete in-memory database without restart.

If H2 console is running in an application that already has such in-memory 
database you can connect to it to inspect or modify its content.
You can also pass -IfNotExists flag:
Server.createWebServer("-ifNotExists").start();
This flag allows creation of a new database.

You can also pass it to a sevlet if you you use console inside a web 
application:

<servlet>
 <servlet-name>H2Console</servlet-name>
 <servlet-class>org.h2.server.web.WebServlet</servlet-class>
 <init-param>
  <param-name>ifNotExists</param-name>
  <param-value></param-value>
 </init-param>
</servlet>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to