Hello! I do like your told me but I still can not start ser when I start /etc/init.d/ser restart and loading mysql.so,if I am not loading mysql.so,the ser can start and working fine. [root@jzmv ser]# ser -E [root@jzmv ser]# stateless - initializing 0(0) Maxfwd module- initializing 0(0) bind_dbmod: Module sql does not export db_use_table function 0(0) ERROR: mod_init(): Can't bind database module 0(0) init_mod(): Error while initializing module usrloc ERROR: error while initializing modules
How can I do next step? Thank you My ser.cfg is configure like this: loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so" loadmodule "/usr/local/lib/ser/modules/tm.so" loadmodule "/usr/local/lib/ser/modules/rr.so" loadmodule "/usr/local/lib/ser/modules/maxfwd.so" loadmodule "/usr/local/lib/ser/modules/usrloc.so" loadmodule "/usr/local/lib/ser/modules/registrar.so" loadmodule "/usr/local/lib/ser/modules/textops.so"
# Uncomment this if you want digest authentication # mysql.so must be loaded ! loadmodule "/usr/local/lib/ser/modules/auth.so" loadmodule "/usr/local/lib/ser/modules/auth_db.so" modparam("usrloc", "db_url", "sql://ser:heslo@localhost/ser") modparam("usrloc", "db_mode", 2) modparam("usrloc", "timer_interval", 60) modparam("usrloc", "desc_time_order", 1)
----- Original Message ----- From: "Ritesh Jalan" ritesh.j@net4india.net To: "Zhaomin" zhaomin@kingdream.com; serusers@iptel.org Sent: Wednesday, January 12, 2005 6:26 PM Subject: Re: [Serusers] I can not loading the mysql.so
the format of db_url has changed, now it has to start with the name of the database driver (module), in your case, mysql, so the proper value is:
modparam("usrloc", "db_url", "mysql://ser:heslo@localhost/ser")
If you look in NEWS file, you will find the note regarding database api there in the section about changes in core.
Daniel
On 01/13/05 10:12, Zhaomin wrote: