problems with ejabberd and mysql

Hi,

I am trying to setup ejabberd with mysql. I am using unixODBC and have the following parts in the configs:

ejabberd.cfg:

{odbc_server, {"DSN=ejabberd"}}.

odbc.ini:

[ejabberd]
Driver          = myodbc-5.1
Socket          = /var/run/mysqld/mysqld5.sock
Server          = localhost
User            = root
Password        = rootpass
Option          = 3

and I get the following error in ejabberd.log:

=INFO REPORT==== 2010-03-02 13:01:10 ===
    application: ejabberd
    exited: {bad_return,
                {{ejabberd_app,start,[normal,[]]},
                 {'EXIT',
                     {function_clause,
                         [{ejabberd_check,check_database_module,
                              ["DSN=ejabberd"]},
                          {ejabberd_check,
                              '-check_database_modules/0-lc$^0/1-0-',1},
                          {ejabberd_app,start,2},
                          {application_master,start_it_old,4}]}}}}
    type: temporary

but I don't understand what it means. Can you please help me?

Quote: ejabberd.cfg: {odbc_se

Quote:

ejabberd.cfg:

{odbc_server, {"DSN=ejabberd"}}.

You have a pair of { } that are not mentioned in the example in the Guide, see
http://www.process-one.net/en/ejabberd/guide_en#configureodbc

{odbc_server, "DSN=database;UID=ejabberd;PWD=password"}.
Syndicate content