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.