The server creates an index of all existing databases on startup. Afterwards only by client created databases are added to that index. So all databases created by other processes (GUI, Console) are not in the index. Restart the server and you will see all databases.
I guess the db:list() function uses that index and the db:list("dbname") function does not.
-- Andreas
Am 21.11.2012 um 13:01 schrieb Stefan Koch:
Strange thing is: Our application has access to the db. ... found out that db:list('dbname') has access to the database, while db:list() can't see it.
Am 21.11.2012 12:51, schrieb Andreas Weiler:
uh same problem for me...
steps to reproduce:
- start server
- start GUI and create db "test", close GUI
- run list...DB "test" is not there, but can be accessed with open test
I guess just client connections can add new databases to a running server instance.
-- Andreas
Am 21.11.2012 um 12:48 schrieb Stefan Koch:
... the user has all privileges. I tried to added R/W Access via Grant (though basex standalone). But the client still can't see it.
Stefan
Am 21.11.2012 12:15, schrieb Andreas Weiler:
Hi Stefan,
does the user have permission to see all databases?
Regards, Andreas
Am 21.11.2012 um 12:21 schrieb Stefan Koch:
Hi,
I was wondering why our backupskript isn't exporting all databases, one is missing. The I found out why - our backuptool connects via Java and uses db:list to get the names of all databases.
If I connect via basexclient - there is one missing, if I check via basex (from the shell) the database is shown. I added the database also via basex and not like the others via the client.
Is this intended behaviour? How can I tell the client, that there is one more database?
Regards,
Stefan _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk