Is there an easier way? To run many databases, we can create a simple file "start.sh"
Before using, create separate folders for each database.
/ Opt / db / trunk
/ Opt / db / master
The following copy in "start.sh":
Make this file executable:
chmod +x start.sh
Beginning of work:
$ ./hsqdb.sh
Conclusion:
... [ Server@15c7850 ]: Database [index=0, id=0, db=file:/opt/db/trunk/trunk, alias=trunk] opened sucessfully in 426 ms. [ Server@15c7850 ]: Database [index=1, id=1, db=file:/opt/db/master/master, alias=master] opened sucessfully in 128 ms. ... [ Server@15c7850 ]: From command line, use [Ctrl]+[C] to abort abruptly
So, you will get two databases with aliases: trunk and master
Example HSQL database manager settings:
Type: HSQL Database Server Server
Driver: org.hsqldb.jdbcDriver
URL: jdbc: hsqldb: hsql: // localhost: 9001 / trunk
User: SA
Password:
You can change the alias connecting line to another alias
Connection to JDBC URL:
JDBC: HSQLDB: HSQL: // local: 9001 / Trunk
JDBC: HSQLDB: HSQL: // local: 9001 / master
source share