Monday, December 23, 2013

jabberd2 debug analyze – startup

1.c2s

1.1.entry point code

in jabberd2\c2s\main.c line:608

JABBER_MAIN("jabberd2c2s", "Jabber 2 C2S", "Jabber Open Source Server: Client to Server", "jabberd2router\0")

1.

2.profile file


in jabberd2\win32\bin\debug\c2s.xml


search keywords "sqlite" and "mysql",and change these value.


i changed: "authreg –> module" from "sqlite" to "mysql"


1.3. import mysql db data


import jabberd2\win32\db-setup.mysql to mysql.


add user:

CREATE USER 'jabberd2'@'localhost' IDENTIFIED BY  '***';

GRANT ALL PRIVILEGES ON * . * TO 'jabberd2'@'localhost' IDENTIFIED BY '***' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;



2.sm


2.1 profile file


in jabberd2\win32\bin\debug\sm.xml


search keywords "sqlite" and "mysql",and change these value.


i changed: "storage –> driver" from "sqlite" to "mysql"

No comments: