Have you granted DB access to Kamailio...?GRANT ALL ON kamailio.* TO DB_USERNAME@'KAMAIALIO_IP' IDENTIFIED BY 'DBPASSWORD....';
On Sun, May 4, 2014 at 2:32 AM, toasterisk <toasterisk@gmail.com> wrote:
_______________________________________________hello, all of users:I am using this link for kamalio+asterisk+mysql:i do everything based on the link, only different thing is I installed Kamalio+mysql at same server, and asterisk in another server.currently, my asterisk can connect with the remove MYSQL server, but kamailio can not connect with that.when start up the kamailio, i got the error message:------------------------------------------0(3739) DEBUG: <core> [sruid.c:100]: root for sruid is [uloc-5365e604-e9b-] (0 / 18)0(3739) DEBUG: <core> [sr_module.c:892]: DEBUG: init_mod_child (1): ctl0(3739) DEBUG: <core> [sr_module.c:892]: DEBUG: init_mod_child (1): mi_rpc0(3739) DEBUG: <core> [sr_module.c:892]: DEBUG: init_mod_child (1): acc0(3739) DEBUG: <core> [sr_module.c:892]: DEBUG: init_mod_child (1): auth_db0(3739) DEBUG: <core> [db.c:316]: connection 0xb71aab90 not found in pool0(3739) DEBUG: db_mysql [km_my_con.c:94]: opening connection: mysql://xxxx:xxxx@localhost/asterisk0(3739) ERROR: db_mysql [km_my_con.c:109]: driver error: Access denied for user 'asterisk'@'localhost' (using password: YES)0(3739) ERROR: <core> [db.c:320]: could not add connection to the pool 0(3739) ERROR: auth_db [authdb_mod.c:174]: unable to connect to the database0(3739) ERROR: <core> [sr_module.c:896]: init_mod_child(): Error while initializing module auth_db (/usr/local/lib/kamailio/modules_k/auth_db.so)0(3739) ERROR: <core> [main.c:1433]: main_dontfork: init_child failed4(3744) INFO: <core> [main.c:851]: INFO: signal 15 received3(3743) INFO: <core> [main.c:851]: INFO: signal 15 received0(3739) INFO: <core> [main.c:797]: INFO: dont_fork turned on, living on0(3739) ALERT: <core> [main.c:782]: child process 3743 exited normally, status=00(3739) ALERT: <core> [main.c:782]: child process 3744 exited normally, status=00(3739) INFO: <core> [main.c:797]: INFO: dont_fork turned on, living on0(3739) DEBUG: <core> [db_pool.c:97]: connection still kept in the pool0(3739) DEBUG: tm [t_funcs.c:122]: DEBUG: tm_shutdown : start0(3739) DEBUG: tm [t_funcs.c:125]: DEBUG: tm_shutdown : emptying hash table0(3739) DEBUG: tm [t_funcs.c:127]: DEBUG: tm_shutdown : removing semaphores0(3739) DEBUG: tm [t_funcs.c:129]: DEBUG: tm_shutdown : destroying tmcb lists0(3739) DEBUG: tm [t_funcs.c:132]: DEBUG: tm_shutdown : done0(3739) DEBUG: <core> [mem/shm_mem.c:242]: shm_mem_destroy0(3739) DEBUG: <core> [mem/shm_mem.c:245]: destroying the shared memory lock---------------------------------------------------------------------------------------------------------------------------[MySQL-asterisk]Description = MySQL Asterisk databaseTrace = OffTraceFile = stderrDriver = MySQLSERVER = 192.168.1.116 // IP for kamailio and mysqlUSER = asteriskPASSWORD = 111111PORT = 3306DATABASE = asterisk-----------------use isql test---------------root@kamailio:/etc# isql -v ODBC[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified[ISQL]ERROR: Could not SQLConnectroot@kamailio:/etc#-----------------------------------------------------------anyone knows the problem?thanks!
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users