Re: [Refdb-devel] upgrading the main database
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mar...@mh...> - 2006-09-29 08:44:48
|
Hi David, David Nebauer <dav...@sw...> was heard to say: > refdbd is now failing unless a username is supplied. Here is the > feedback if there is no username: [...] > refdbd has not previously required a username when running an sqlite > backend. > refdbd only requires a username if you use the -a or -c switches. In this case no client connection can provide the username and password required to connect to the database server. However, you are right that this does not make much sense in the case of SQLite. Actually refdbd attempts to guess a username using the getlogin() function if none is provided. This is sufficient on all systems that I've tested so far. I have no idea why this fails on your system. I've changed refdbd to use a dummy username "root" if getlogin() fails. Please check whether this fixes the problem. > When a spurious username is supplied it attempts to run but still fails: > [...] > > The database location is correct. > Do you have write permissions in the database directory? I see no other reason why this should fail. I've tested this on FreeBSD and Windows/Cygwin successfully. I'll give it a try on the weekend on a Debian box to make sure. regards, Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |