h2 & linux. how to start the database?
sorry im rather new to linux ubuntu. i have an application that i made that runs with tomcat and connects to an h2 database. it all works fine on my windows laptop. im now moving it onto my linux computer to run all the time. but im having trouble wi开发者_开发问答th starting the database. i have downloaded h2 from their website. and its sitting on my desktop.
the question is. how to start the database.
and is their any other commands i need to know to run and operate it.
thankyous
The H2 database supports different modes:
You can use H2 in embedded mode using a database URL of the form
jdbc:h2:~/test
. This is the easiest case. In that case the database is running within the same process as your application is running, and you don't have to start a separate process just for the database.You can use H2 in server mode. In that case you need to start a separate server process. But for your case it doesn't sound like you need this, right?
H2 also supports mixed mode (half embedded / half server), and the automatic mixed mode.
For details, see the H2 documentation about Connection Modes.
Is this what you are looking for?
https://groups.google.com/forum/?fromgroups=#!topic/h2-database/r-qRnskN0eQ
Open terminal in bin directory of h2 database and write these commands...
chmod +x h2.sh
./h2.sh
Click here for more information (similar thread)...
精彩评论