Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Problems with ODBC


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
fidibus83 at aol.com
Guest





PostPosted: Tue Jan 06, 2009 9:02 am    Post subject: [Freeswitch-users] Problems with ODBC Reply with quote

Hello,

I need your help again!

I want to use ODBC in javascripts.

First I installed unixodbc and I did all the steps what are mentioned in wiki: mod spidermonkey odbc.

But when I test my ODBC Setup by running isql I get this error:
[ISQL]ERROR: Could not SQLConnect

And I can’t start FS. I get this Error:
./freeswitch: error while loading shared libraries: libodbc.so.1: cannot open shared object file: No such file or directory

I uncomment:

conf/autoload_configs/spidermonkey.conf.xml
Quote:
<load module="mod_spidermonkey_odbc"/> build/modules.conf

languages/mod_spidermonkey_odbc


Here my configurations:

odbc.ini

[fs01_odbc]
Driver=MySQL
SERVER=localhost
PORT=3306
DATABASE=freeswitch
Socket= /var/run/mysqld/mysqld.sock

odbcinst.ini

[MySQL]
Description = ODBC for MySQL
Driver = /usr/local/lib/libodbc.so
UsageCount = 1

Can you help me? What do I wrong?

Thanks!

Regards, fidibus
Back to top
raul at etellicom.com
Guest





PostPosted: Tue Jan 06, 2009 9:46 am    Post subject: [Freeswitch-users] Problems with ODBC Reply with quote

Your odbcinst.ini file doesn't seem to have the MySQL ODBC driver
installed correctly. Did you install the libmyodbc package ?
This is the contents of my /etc/odbcinst.ini file with a working driver
for MySQL:

[MySQL]
Description = MySQL driver
Driver = /usr/lib/odbc/libmyodbc.so
Setup = /usr/lib/odbc/libodbcmyS.so
CPTimeout =
CPReuse =


On Tue, 2009-01-06 at 14:59 +0100, fidibus83 wrote:
Quote:
Hello,



I need your help again!



I want to use ODBC in javascripts.



First I installed unixodbc and I did all the steps what are mentioned
in wiki: mod spidermonkey odbc.



But when I test my ODBC Setup by running isql I get this error:

[ISQL]ERROR: Could not SQLConnect



And I can’t start FS. I get this Error:

./freeswitch: error while loading shared libraries: libodbc.so.1:
cannot open shared object file: No such file or directory



I uncomment:



conf/autoload_configs/spidermonkey.conf.xml

<load module="mod_spidermonkey_odbc"/>

build/modules.conf

languages/mod_spidermonkey_odbc





Here my configurations:



odbc.ini



[fs01_odbc]

Driver=MySQL

SERVER=localhost

PORT=3306

DATABASE=freeswitch

Socket= /var/run/mysqld/mysqld.sock



odbcinst.ini



[MySQL]

Description = ODBC for MySQL

Driver = /usr/local/lib/libodbc.so

UsageCount = 1



Can you help me? What do I wrong?



Thanks!



Regards, fidibus


_______________________________________________
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


_______________________________________________
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
Back to top
mike at jerris.com
Guest





PostPosted: Tue Jan 06, 2009 9:48 am    Post subject: [Freeswitch-users] Problems with ODBC Reply with quote

That error seemsto indicatethat unixodbc is not installed or not correctly installed.


Mike

On Jan 6, 2009, at 8:59 AM, "fidibus83" <fidibus83@aol.com (fidibus83@aol.com)> wrote:



Quote:

Hello,

I need your help again!

I want to use ODBC in javascripts.

First I installed unixodbc and I did all the steps what are mentioned in wiki: mod spidermonkey odbc.

But when I test my ODBC Setup by running isql I get this error:
[ISQL]ERROR: Could not SQLConnect

And I can’t start FS. I get this Error:
./freeswitch: error while loading shared libraries: libodbc.so.1: cannot open shared object file: No such file or directory

I uncomment:

conf/autoload_configs/spidermonkey.conf.xml
Quote:
<load module="mod_spidermonkey_odbc"/> build/modules.conf

languages/mod_spidermonkey_odbc


Here my configurations:

odbc.ini

[fs01_odbc]
Driver=MySQL
SERVER=localhost
PORT=3306
DATABASE=freeswitch
Socket= /var/run/mysqld/mysqld.sock

odbcinst.ini

[MySQL]
Description = ODBC for MySQL
Driver = /usr/local/lib/libodbc.so
UsageCount = 1

Can you help me? What do I wrong?

Thanks!

Regards, fidibus

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Jan 06, 2009 9:54 am    Post subject: [Freeswitch-users] Problems with ODBC Reply with quote

Chances are the paths to the .so's are wrong... I would verify that
info... if you're on 64bit it would be in lib64.

/b

On Jan 6, 2009, at 8:29 AM, Raul Fragoso wrote:

Quote:
Your odbcinst.ini file doesn't seem to have the MySQL ODBC driver
installed correctly. Did you install the libmyodbc package ?
This is the contents of my /etc/odbcinst.ini file with a working
driver
for MySQL:

[MySQL]
Description = MySQL driver
Driver = /usr/lib/odbc/libmyodbc.so
Setup = /usr/lib/odbc/libodbcmyS.so
CPTimeout =
CPReuse =


_______________________________________________
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
Back to top
intralanman at freeswi...
Guest





PostPosted: Tue Jan 06, 2009 10:15 am    Post subject: [Freeswitch-users] Problems with ODBC Reply with quote

fidibus83 wrote:
Quote:

Hello,

I need your help again!

I want to use ODBC in javascripts.

First I installed unixodbc and I did all the steps what are mentioned in wiki: mod spidermonkey odbc.

But when I test my ODBC Setup by running isql I get this error:
[ISQL]ERROR: Could not SQLConnect
This isn't really a general purpose ODBC list, but using the -v option of isql tends to yield more verbose output (imagine that!)

so you get:
isql -vvv freeswitch freeswitch freeswitch
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect


as opposed to:
isql freeswitch freeswitch freeswitch
[ISQL]ERROR: Could not SQLConnect

-Ray
Back to top
fidibus83 at aol.com
Guest





PostPosted: Tue Jan 06, 2009 10:33 am    Post subject: [Freeswitch-users] Problems with ODBC Reply with quote

The libmyodbc package is installed.

But I see I have a lot of version of libmyodbc:
libmyodbc3.so
libmyodbc3_r.so
libmyodbc3_r-3.51.14.so
libmyodbc3-3.51.14.so

I changed odbcinst.ini:

[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/libmyodbc3.so
Setup = /usr/lib/libodbcmyS.so

I run isgl –vvv and I get this:

[08S01] [unixODBC] [MySQL] [ODBC 3.51 Driver] Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
[ISQL] ERROR: Could not SQLConnect


Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Raymond Chandler
Gesendet: Dienstag, 6. Januar 2009 16:13
An: freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] Problems with ODBC


fidibus83 wrote:
Hello,

I need your help again!

I want to use ODBC in javascripts.

First I installed unixodbc and I did all the steps what are mentioned in wiki: mod spidermonkey odbc.

But when I test my ODBC Setup by running isql I get this error:
[ISQL]ERROR: Could not SQLConnect
This isn't really a general purpose ODBC list, but using the -v option of isql tends to yield more verbose output (imagine that!)

so you get:
isql -vvv freeswitch freeswitch freeswitch
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect


as opposed to:
isql freeswitch freeswitch freeswitch
[ISQL]ERROR: Could not SQLConnect

-Ray
Back to top
intralanman at freeswi...
Guest





PostPosted: Tue Jan 06, 2009 12:14 pm    Post subject: [Freeswitch-users] Problems with ODBC Reply with quote

is mysql running on the localhost? if so, is that the correct path to the .sock?

you might also try using 127.0.0.1 as the host instead of localhost to force a network connection.

-Ray


fidibus83 wrote:
Quote:
v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} <![endif]--> <![endif]--> <![endif]-->
The libmyodbc package is installed.

But I see I have a lot of version of libmyodbc:
libmyodbc3.so
libmyodbc3_r.so
libmyodbc3_r-3.51.14.so
libmyodbc3-3.51.14.so

I changed odbcinst.ini:

[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/libmyodbc3.so
Setup = /usr/lib/libodbcmyS.so

I run isgl –vvv and I get this:

[08S01] [unixODBC] [MySQL] [ODBC 3.51 Driver] Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
[ISQL] ERROR: Could not SQLConnect


Von: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] Im Auftrag von Raymond Chandler
Gesendet: Dienstag, 6. Januar 2009 16:13
An: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Betreff: Re: [Freeswitch-users] Problems with ODBC


fidibus83 wrote:
Hello,

I need your help again!

I want to use ODBC in javascripts.

First I installed unixodbc and I did all the steps what are mentioned in wiki: mod spidermonkey odbc.

But when I test my ODBC Setup by running isql I get this error:
[ISQL]ERROR: Could not SQLConnect
This isn't really a general purpose ODBC list, but using the -v option of isql tends to yield more verbose output (imagine that!)

so you get:
isql -vvv freeswitch freeswitch freeswitch
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect


as opposed to:
isql freeswitch freeswitch freeswitch
[ISQL]ERROR: Could not SQLConnect

-Ray
Quote:


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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
Back to top
fidibus83 at aol.com
Guest





PostPosted: Wed Jan 07, 2009 8:12 am    Post subject: [Freeswitch-users] Problems with ODBC Reply with quote

Thanks for your help. It works.


Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Raymond Chandler
Gesendet: Dienstag, 6. Januar 2009 18:13
An: freeswitch-users@lists.freeswitch.org
Betreff: Re: [Freeswitch-users] Problems with ODBC


is mysql running on the localhost? if so, is that the correct path to the .sock?

you might also try using 127.0.0.1 as the host instead of localhost to force a network connection.

-Ray


fidibus83 wrote:
<![endif]--> <![endif]-->The libmyodbc package is installed.

But I see I have a lot of version of libmyodbc:
libmyodbc3.so
libmyodbc3_r.so
libmyodbc3_r-3.51.14.so
libmyodbc3-3.51.14.so

I changed odbcinst.ini:

[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/libmyodbc3.so
Setup = /usr/lib/libodbcmyS.so

I run isgl –vvv and I get this:

[08S01] [unixODBC] [MySQL] [ODBC 3.51 Driver] Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)
[ISQL] ERROR: Could not SQLConnect


Von: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] Im Auftrag von Raymond Chandler
Gesendet: Dienstag, 6. Januar 2009 16:13
An: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Betreff: Re: [Freeswitch-users] Problems with ODBC


fidibus83 wrote:
Hello,

I need your help again!

I want to use ODBC in javascripts.

First I installed unixodbc and I did all the steps what are mentioned in wiki: mod spidermonkey odbc.

But when I test my ODBC Setup by running isql I get this error:
[ISQL]ERROR: Could not SQLConnect
This isn't really a general purpose ODBC list, but using the -v option of isql tends to yield more verbose output (imagine that!)

so you get:
isql -vvv freeswitch freeswitch freeswitch
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect


as opposed to:
isql freeswitch freeswitch freeswitch
[ISQL]ERROR: Could not SQLConnect

-Ray
Quote:
 



 _______________________________________________Freeswitch-users mailing listFreeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)http://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org 
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services