2016-04-08 55 views
0

根據日誌服務器啓動與別名「myrepos」如預期。 但是,如果我試圖連接到這個別名,我得到一個錯誤,也可以在日誌中看到(最後一行)。Hsqldb服務器,別名不存在

可能是什麼原因?

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

回答

0

已解決。我的配置中的數據庫名稱後面有空格,它已被合併到別名:'alias = myrepos]' 因此,別名實際上不是"myrepos",而是"myrepos "