{"id":8489,"date":"2020-09-24T12:35:58","date_gmt":"2020-09-24T19:35:58","guid":{"rendered":"https:\/\/minisoft.com\/support\/?p=8489"},"modified":"2022-01-17T12:59:06","modified_gmt":"2022-01-17T20:59:06","slug":"h2-database","status":"publish","type":"post","link":"https:\/\/minisoft.com\/support\/h2-database\/","title":{"rendered":"H2 Database"},"content":{"rendered":"\n<p>Important Note: Please consult the following post &#8211; <a href=\"\/support\/index.php\/jndi-vulnerability-in-h2-database-consoles\/\">JNDI vulnerability in H2 database consoles<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install<\/h2>\n\n\n\n<p>Go to the following page: <a href=\"https:\/\/www.h2database.com\/html\/download.html\">https:\/\/www.h2database.com\/html\/download.html<\/a>. Select Windows Installer (&#8220;Last Stable&#8221; version).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2022\/01\/H2-210.png\"><img decoding=\"async\" loading=\"lazy\" width=\"763\" height=\"208\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2022\/01\/H2-210.png\" alt=\"\" class=\"wp-image-9894\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2022\/01\/H2-210.png 763w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2022\/01\/H2-210-300x82.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2022\/01\/H2-210-150x41.png 150w\" sizes=\"(max-width: 763px) 100vw, 763px\" \/><\/a><\/figure>\n\n\n\n<p>If the install cannot find Java, download and run the following: <a href=\"https:\/\/www.minisoft.com\/download\/?ID=openjdk14\">https:\/\/www.minisoft.com\/download\/?ID=openjdk14<\/a><\/p>\n\n\n\n<p>Go to the Control Panel\\System and Security\\System\\Advanced System Settings\\Environment Variables.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"514\" height=\"221\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_2.png\" alt=\"\" class=\"wp-image-8491\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_2.png 514w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_2-300x129.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_2-150x64.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_2-250x107.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_2-419x180.png 419w\" sizes=\"(max-width: 514px) 100vw, 514px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"411\" height=\"464\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_3.png\" alt=\"\" class=\"wp-image-8492\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_3.png 411w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_3-266x300.png 266w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_3-133x150.png 133w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_3-250x282.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_3-159x180.png 159w\" sizes=\"(max-width: 411px) 100vw, 411px\" \/><\/figure>\n\n\n\n<p>In the System Variables, modify the Path variable to include the bin directory of the Java install directory to the path, such as: <code>C:\\Program Files\\Java\\jdk14.0.1\\bin<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"591\" height=\"233\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_4.png\" alt=\"\" class=\"wp-image-8493\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_4.png 591w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_4-300x118.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_4-150x59.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_4-250x99.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_4-550x217.png 550w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_4-457x180.png 457w\" sizes=\"(max-width: 591px) 100vw, 591px\" \/><\/figure>\n\n\n\n<p>In the System Variables, add a new variable called JAVA_HOME and point it to the same path above, but to the directory above the \u201cbin\u201d directory, such as: <code>C:\\Program Files\\Java\\jdk14.0.1<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"602\" height=\"238\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_5.png\" alt=\"\" class=\"wp-image-8494\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_5.png 602w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_5-300x119.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_5-150x59.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_5-250x99.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_5-550x217.png 550w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_5-455x180.png 455w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">H2 Console<\/h2>\n\n\n\n<p><strong>Default Console URL:<\/strong> http:\/\/localhost:8082<\/p>\n\n\n\n<p>Create a new database by editing the JDBC URL path, for example:<br><code>jdbc:h2:C:\\Minisoft\\eFORMz_6\\h2db\\companyname;AUTO_SERVER=TRUE<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"611\" height=\"472\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console1.png\" alt=\"\" class=\"wp-image-8496\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console1.png 611w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console1-300x232.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console1-150x116.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console1-250x193.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console1-550x425.png 550w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console1-233x180.png 233w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console1-388x300.png 388w\" sizes=\"(max-width: 611px) 100vw, 611px\" \/><\/figure>\n\n\n\n<p>Set the database admin user\/password to MINISOFT\/password with the following command in the H2 console (H2 forces user names to upper case by default): <code>CREATE USER IF NOT EXISTS MINISOFT PASSWORD 'password' ADMIN;<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"674\" height=\"127\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console2.png\" alt=\"\" class=\"wp-image-8497\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console2.png 674w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console2-300x57.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console2-150x28.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console2-250x47.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console2-550x104.png 550w\" sizes=\"(max-width: 674px) 100vw, 674px\" \/><\/figure>\n\n\n\n<p>Databases can be placed anywhere but it&#8217;s recommended that they are kept in the h2db folder under eFORMz:<\/p>\n\n\n\n<p>Windows: <code>C:\\Minisoft\\eFORMz_6\\h2db\\<\/code><br>Non-Windows: <code>minisoft\/h2db\/<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"821\" height=\"553\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console3.png\" alt=\"\" class=\"wp-image-8498\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console3.png 821w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console3-300x202.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console3-768x517.png 768w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console3-150x101.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console3-250x168.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console3-550x370.png 550w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console3-800x539.png 800w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console3-267x180.png 267w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console3-445x300.png 445w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/console3-742x500.png 742w\" sizes=\"(max-width: 821px) 100vw, 821px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Making H2 Run as a Service<\/h2>\n\n\n\n<p>It is recommended to set the Database Engine to run as an eFORMz service by adding the following entry to your ServiceManagerSettings.xml file in the eFORMz install directory (C:\\Minisoft\\eFORMz_6 on Windows):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;Service Name=\"H2 DBMS\" Class=\"com.minisoft.h2.Service\" Parameters=\"-tcp -web -webPort 8083 -baseDir h2db \" Start=\"true\" \/&gt;<\/pre>\n\n\n\n<p><strong>Driver Class:<\/strong> <code>org.h2.Driver<\/code><\/p>\n\n\n\n<p><strong>Connect URL:<\/strong> <code>jdbc:h2:&lt;path here no &lt;&gt; included&gt;;user=&lt;correct user here&gt;;AUTO_SERVER=TRUE<\/code><\/p>\n\n\n\n<p>Add this line and restart the service without the H2 console running.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">eFORMz sample project database connection properties<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"588\" height=\"518\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_sampleproject.png\" alt=\"\" class=\"wp-image-8495\" srcset=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_sampleproject.png 588w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_sampleproject-300x264.png 300w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_sampleproject-150x132.png 150w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_sampleproject-250x220.png 250w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_sampleproject-550x485.png 550w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_sampleproject-204x180.png 204w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_sampleproject-341x300.png 341w, https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/09\/h2_sampleproject-568x500.png 568w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/figure>\n\n\n\n<p>Database connection name: <code>HMS_H2<\/code><br>Driver class: <code>org.h2.Driver<\/code><br>URL: <code>jdbc:h2:C:\\Minisoft\\eFORMz_6\\h2db\\HMS_H2;AUTO_SERVER=TRUE<\/code><\/p>\n\n\n\n<p>Alt tag: ShipFX<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Important Note: Please consult the following post &#8211; JNDI vulnerability in H2 database consoles Install Go to the following page: https:\/\/www.h2database.com\/html\/download.html. Select Windows Installer (&#8220;Last Stable&#8221; version). If the install cannot find Java, download and run the following: https:\/\/www.minisoft.com\/download\/?ID=openjdk14 Go to the Control Panel\\System and Security\\System\\Advanced System Settings\\Environment Variables. In the System Variables, modify the [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[208,581],"tags":[645,646,582],"_links":{"self":[{"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/posts\/8489"}],"collection":[{"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=8489"}],"version-history":[{"count":4,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/posts\/8489\/revisions"}],"predecessor-version":[{"id":9896,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/posts\/8489\/revisions\/9896"}],"wp:attachment":[{"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=8489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=8489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=8489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}