URL: <http://gna.org/bugs/?19166>
Summary: README.fcdb needs work Project: Freeciv Submitted by: jtn Submitted on: Sat Dec 10 22:36:39 2011 Category: docs Severity: 3 - Normal Priority: 5 - Normal Status: None Assigned to: None Originator Email: Open/Closed: Open Release: Discussion Lock: Any Operating System: Any Planned Release: 2.4.0,2.5.0 _______________________________________________________ Details: > the database backend is activated with the command line option > '--Database FILE', where FILE is a lua script containing the > needed functions In fact the file supplied to --Database is a secfile containing details of the database to use. The format of this needs documenting here. (As far as I can tell, the Lua file referred to is hardcoded to be "database.lua" somewhere in the path.) For reference, here's the file I use, having reverse-engineered the format from the source (carefully crafted to work with S2_3 and S2_4): # for S2_3/S2_2 [auth] host="localhost" port="3306" database="freeciv" user="freecivadmin" password="XXX" table="auth" login_table="loginlog" # for trunk (2.4.x) [fcdb] host="localhost" port="3306" database="freeciv" user="freecivadmin" password="XXX" table_user="auth" table_log="loginlog" It would be nice to document the S2_3 format too (on that branch), but S2_4 is the future, of course. _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?19166> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev