1. Server mode:
Start server: java -cp hsqldb.jar org.hsqldb.Server -database.0 file:mydb -dbname.0 xdb
URL -> jdbc:hsqldb:hsql://localhost/xdb
Connect through SQL tool: java -jar hsqldb.jar server
Please note that when connect hsqldb using SQL tool, it will read sqltool.rc to get your connect url, username and password. The following is a sample sqltool.rc:
urlid server
url jdbc:hsqldb:hsql://localhost/xdb
username sa
password
2. Memory-Only mode:
URL -> jdbc:hsqldb:mem:aname
本文介绍如何使用两种不同的模式启动HSQLE数据库:Server模式和内存模式,并提供了通过SQL工具连接数据库的方法及示例配置文件sqltool.rc的内容。
91

被折叠的 条评论
为什么被折叠?



