Concept of In Memory Database and how to see if my data is being populated in HSQL DB?

前端 未结 3 456
自闭症患者
自闭症患者 2021-01-14 10:21

I am using HSQL in memory database for test purpose of my application and using SQL Server as main database, now when am doing test then HSQL Database is being populated wit

3条回答
  •  旧巷少年郎
    2021-01-14 10:44

    Here I add a detailed steps of

    How To Running a memory-only HSQLDB in server mode?

    1) Download the latest version hsqldb-2.2.5.zip

    2) unzip it,open the bin folder

    3) modify the runServer.bat like cd ..\data @java -classpath ../lib/hsqldb.jar org.hsqldb.server.Server -database.0 mem:aname -dbname.0 aliasdb and click the runServer.bat to start server

    4) run the runManager.bat, select Server type, enter the url jdbc:hsqldb:hsql://localhost/aliasdb,connect, create some test table and test data

    5) run the runManager.bat again to start another client,select Server type, enter the url jdbc:hsqldb:hsql://localhost/aliasdb, connect, you will find the data you created.

提交回复
热议问题