Problem with MYSQL

I have problem connecting ejabberd with MYSQL. All other functions seems work correctly until users autentication. Also ejabberd worked well with ejabberd native database.

ejabberd.log has following content after starting ejabberd and after trying log in as user:

=INFO REPORT==== 2009-05-14 04:46:40 ===
I(<0.297.0>:mod_pubsub:224) : ** terminate default plugin

=INFO REPORT==== 2009-05-14 04:46:40 ===
I(<0.297.0>:mod_pubsub:224) : ** terminate pep plugin

=INFO REPORT==== 2009-05-14 04:46:45 ===
I(<0.37.0>:ejabberd_rdbms:37) : ejabberd has not been compiled with relational database support. Skipping database startup.

=INFO REPORT==== 2009-05-14 04:46:45 ===
I(<0.297.0>:mod_pubsub:155) : pubsub init "localhost" [{access_createnode,
                                                           pubsub_createnode},
                                                       {plugins,
                                                           ["default","pep"]}]

=INFO REPORT==== 2009-05-14 04:46:45 ===
I(<0.297.0>:mod_pubsub:212) : ** tree plugin is nodetree_default

=INFO REPORT==== 2009-05-14 04:46:45 ===
I(<0.297.0>:mod_pubsub:216) : ** init default plugin

=INFO REPORT==== 2009-05-14 04:46:45 ===
I(<0.297.0>:mod_pubsub:216) : ** init pep plugin

=INFO REPORT==== 2009-05-14 04:48:29 ===
I(<0.260.0>:ejabberd_listener:116) : (#Port<0.408>) Accepted connection {{127,0,0,1},40420} -> {{127,0,0,1},5222}

=ERROR REPORT==== 2009-05-14 04:48:29 ===
** State machine <0.331.0> terminating 
** Last event in was {xmlstreamelement,
                         {xmlelement,"iq",
                                     [{"type","set"},
                                      {"id","auth_2"},
                                      {"to","localhost"}],
                                     [{xmlcdata,<<"\n">>},
                                      {xmlelement,
                                          "query",
                                          [{"xmlns","jabber:iq:auth"}],
                                          [{xmlcdata,<<"\n">>},
                                           {xmlelement,
                                               "username",
                                               [],
                                               [{xmlcdata,<<"testuser">>}]},
                                           {xmlcdata,<<"\n">>},
                                           {xmlelement,
                                               "digest",
                                               [],
                                               [{xmlcdata,
                                                    <<"daae00300b10e0daa17bb4dde9f3f37a86695168">>}]},
                                           {xmlcdata,<<"\n">>},
                                           {xmlelement,
                                               "resource",
                                               [],
                                               [{xmlcdata,<<"Kopete">>}]},
                                           {xmlcdata,<<"\n">>}]},
                                      {xmlcdata,<<"\n">>}]}}
** When State == wait_for_auth
**      Data  == {state,{socket_state,gen_tcp,#Port<0.408>,<0.330.0>},
                        ejabberd_socket,
                        #Ref<0.0.0.8986>,
                        "1490545614",
                        undefined,
                        c2s,
                        c2s_shaper,
                        false,
                        true,
                        false,
                        false,
                        [verify_none,{certfile,"/etc/ejabberd/server.pem"}],
                        false,
                        undefined,
                        [],
                        "localhost",
                        [],
                        undefined,
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        undefined,
                        undefined,
                        undefined,
                        false,
                        {userlist,none,[]},
                        unknown,
                        unknown,
                        {{127,0,0,1},40420},
                        []}
** Reason for termination = 
** {'module could not be loaded',[{ejabberd_odbc,escape,["testuser"]},
                                  {ejabberd_auth_odbc,check_password,5},
                                  {ejabberd_auth,check_password_loop,2},
                                  {ejabberd_c2s,wait_for_auth,2},
                                  {gen_fsm,handle_msg,7},
                                  {proc_lib,init_p,5}]}

All suggestions as decribed in "Using ejabberd with MySQL native driver" tutorial are completed. I think there should be somewhere an some kind little typo but exactly which kind ?

Any suggestions ?

Thank you in advance !

Solved

Ok thanks !

This typo was

./configure --enable-odbc && make

instead

./configure --enable-odbc && make install

Syndicate content