hsqldb 服务器,别名不存在

Hsqldb Server, alias does not exist

根据日志,服务器按预期以别名 "myrepos" 启动。 但是如果我尝试连接到这个别名,我会得到一个错误,在日志中也可以看到(最后一行)。

可能是什么原因?

[Server@28fc19eb]: Initiating startup sequence...
[Server@28fc19eb]: Server socket opened successfully in 6 ms.
[Server@28fc19eb]: Database [index=0, id=0, db=file:/Users/t..../myrepos, alias=myrepos             ] opened sucessfully in 1238 ms.
[Server@28fc19eb]: Startup sequence completed in 1247 ms.
[Server@28fc19eb]: 2016-04-08 10:32:33.871 HSQLDB server 2.3.3 is online on port 9001
[Server@28fc19eb]: To close normally, connect and execute SHUTDOWN SQL
[Server@28fc19eb]: From command line, use [Ctrl]+[C] to abort abruptly
[Server@28fc19eb]: [Thread[HSQLDB Connection @2304d78b,5,HSQLDB Connections @28fc19eb]]: database alias=myrepos does not exist

已解决。我的配置中的数据库名称后面有空格,已合并到别名中:'alias=myrepos ]' 所以,别名实际上不是 "myrepos" 而是 "myrepos "