根据日志,服务器是别名" 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
答案 0 :(得分:0)
解决。我的配置中的数据库名称后面有空格,该空格已合并到别名中:'alias = myrepos]'
因此,别名实际上不是"myrepos"
而是"myrepos "