[ejabberd] Ejabberd refusing to use mysql

Ryan Churches ryan.churches at gmail.com
Sun Jan 20 00:46:55 MSK 2008


Thanks again for the reply.  I hope I did this right:

3> Host = "thedude",
3> ChildSpec =
3> {gen_mod:get_module_proc(Host, ejabberd_odbc_sup),
3> temporary,
3> infinity,
3> supervisor,
3> [ejabberd_odbc_sup]},
3> supervisor:start_child(ejabberd_sup, ChildSpec).
** exited: {noproc,
                    infinity]}} **
4> ejabberd_odbc:sql_query("thedude", "select 1").
** exited: {noproc,{gen_server,call,
                                infinity]}} **

I'd probably just not use MySQL rather than use 2.0-rc1, or if that's not an
option, try a different xmppd.  The last time I tried to go from gentoo
portage to svn i had all kinds of new problems, and I ended up not even
getting as far as I did now.

Everytime I install something outside of portage I complicate my life a
bit.  perhaps I should learn to make .ebuilds

On Jan 19, 2008 4:19 PM, Alexander Tsvyashchenko <lists at ndl.kiev.ua> wrote:

> Hi Ryan,
> It looks like ejabberd_odbc_sup is not started - in 1.1.4 version it
> is started from ejabberd_auth_odbc.erl.
> Please try executing the following code before attempting to run
> queries (the code is taken from ejabberd_auth_odbc.erl):
> Host = "<your-host-name>",
> ChildSpec =
>        {gen_mod:get_module_proc(Host, ejabberd_odbc_sup),
>         {ejabberd_odbc_sup, start_link, [Host]},
>         temporary,
>         infinity,
>         supervisor,
>         [ejabberd_odbc_sup]},
>     supervisor:start_child(ejabberd_sup, ChildSpec).
> Does it make any difference to the result of subsequent queries?
> P.S. BTW, is upgrading to ejabberd-2.0.0-RC1 a possibility for you? If
> yes, I would recommend to do that - I believe DBMS things are a bit
> more clean there.
> Good luck!                                     Alexander
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jabber.ru/pipermail/ejabberd/attachments/20080119/4ba4b904/attachment.htm 

More information about the ejabberd mailing list