Summary: Luasql mysql backend seems broken on trunk
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Sun Apr  7 11:59:35 2013
                Category: general
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: trunk r22685
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 2.5.0



Finally got around to testing after bug #20612. Unfortunately, while sqlite
works, mysql doesn't. Attempting to start a server with a MySQL-configured
configuration file gives errors:

$ server/freeciv-server --Database fc_auth.conf -a
Encodings: Data=UTF-8, Local=UTF-8, Internal=UTF-8
This is the server for Freeciv version 2.4.99-dev
You can learn a lot about Freeciv at http://www.freeciv.org/
1: lua error:   
        /home/jtn/src/freeciv/git/inst/etc/freeciv/database.lua:29: attempt to
call field 'mysql' (a nil value)
stack traceback:
        /home/jtn/src/freeciv/git/inst/etc/freeciv/database.lua:29: in
function 'mysql_connect'
        /home/jtn/src/freeciv/git/inst/etc/freeciv/database.lua:340: in
function </home/jtn/src/freeciv/git/inst/etc/freeciv/database.lua:334>
1: Error connecting to the database

(My fc_config.h does HAVE_FCDB_MYSQL; I built with
--enable-fcdb=sqlite3,mysql. But "/fcdb lua print(luasql.mysql)" does indeed
return "nil".)


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to