not able to connect freeswitch with mysql
Hi to all, I have following this wiki page to configure mysql and freeswitch. http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc When I run the command " *isql -v maxpowersoft_odbc* ", I can able to connect to the MySql database. When , I run the following java script file, *test.js* use("ODBC"); var db = new ODBC("maxpowersoft_odbc", "dbuser", "dbpass"); db.connect(); I am getting error like , 2010-08-31 21:24:06.583606 [ERR] switch_odbc.c:318 STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified Any one help me to relove my issue plz. thanks in advance. Regards, Venkat.
I have solved the problem. we need to copy odbc.ini file into */ect/* folder not */usr/local/etc/* Regards, Venkat. On Tue, Aug 31, 2010 at 9:27 PM, ovvenkat <ovvenkatesan@gmail.com> wrote:
Hi to all,
I have following this wiki page to configure mysql and freeswitch.
http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc
When I run the command " *isql -v maxpowersoft_odbc* ", I can able to connect to the MySql database.
When , I run the following java script file,
*test.js*
use("ODBC"); var db = new ODBC("maxpowersoft_odbc", "dbuser", "dbpass"); db.connect();
I am getting error like ,
2010-08-31 21:24:06.583606 [ERR] switch_odbc.c:318 STATE: IM002 CODE 0 ERROR: [unixODBC][Driver Manager]Data source name not found, and no default driver specified
Any one help me to relove my issue plz. thanks in advance.
Regards, Venkat.
-- Regards Venkatesan OV.
Hi Brian, I got it from here http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc Regards, Venkat. On Wed, Sep 1, 2010 at 7:29 PM, Brian West <brian@freeswitch.org> wrote:
It usually goes in /etc/ not sure where you got the idea it goes in /usr/local/etc/
/b
On Sep 1, 2010, at 5:13 AM, ovvenkat wrote:
I have solved the problem. we need to copy odbc.ini file into /ect/
folder not /usr/local/etc/
Regards, Venkat.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Brian West
-
ovvenkat