Talk:Services/Sync/Server/Archived/0.3/Setup

From MozillaWiki
Jump to: navigation, search

Parameter syntax

I might be mistaken, but the doc says I ought to use sth. like

WEAVE_AUTH_ENGINE mysql

where the php script seems to require sth. like:

define('WEAVE_AUTH_ENGINE', 'mysql');

--molli

you are right, i just edited the main page to reflect correct status

--Markus.doits 22:18, 3 January 2009 (UTC)

User creation

The command

insert into users values ('[username]', md5('[password]'));

seems not to be correct, because current DB layout has more fields ("mail", "location"). What is supposed to be in them?

--molli

i think it is correct, because the other parameters can be null - they are not used now anyway i think. the perl-script for creating users does not use the other vars, either.

--Markus.doits 22:21, 3 January 2009 (UTC)

Should be

insert into users values ('[username]', md5('[password]'), null, null);

insert with 2 parameters caused sql error.