<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
code
        {font-family:"Courier New";}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.E-MailFormatvorlage19
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.E-MailFormatvorlage20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=DE link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>The libmyodbc package is
installed.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>But I see I have a lot of
version of libmyodbc:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>libmyodbc3.so<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>libmyodbc3_r.so<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>libmyodbc3_r-3.51.14.so<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>libmyodbc3-3.51.14.so<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>I changed odbcinst.ini:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>[MySQL]<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>Description = ODBC for
MySQL<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>Driver =
/usr/lib/libmyodbc3.so<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>Setup = /usr/lib/libodbcmyS.so<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>I run isgl –vvv and
I get this:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>[08S01] [unixODBC] [MySQL]
[ODBC 3.51 Driver] Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’
(2)<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'>[ISQL] ERROR: Could not
SQLConnect<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>Von:</span></font></b><font size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma; color:windowtext'> freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b><span style='font-weight:bold'>Im Auftrag von </span></b>Raymond Chandler<br>
<b><span style='font-weight:bold'>Gesendet:</span></b> Dienstag, 6. Januar 2009
16:13<br>
<b><span style='font-weight:bold'>An:</span></b>
freeswitch-users@lists.freeswitch.org<br>
<b><span style='font-weight:bold'>Betreff:</span></b> Re: [Freeswitch-users]
Problems with ODBC</span></font><font color=black><span style='color:windowtext'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'>fidibus83 wrote: <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size: 10.0pt;font-family:Arial'>Hello,<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size: 10.0pt;font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>I need your help again!<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>I want to use ODBC in javascripts.<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>First I installed unixodbc and I did
all the steps what are mentioned in wiki: mod spidermonkey odbc.<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>But when I test my ODBC Setup by
running isql I get this error:<u1:p></u1:p></span></font><o:p></o:p></p>
<p class=MsoNormal><font size=2 color=black face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial'>[ISQL]ERROR: Could not SQLConnect</span></font><o:p></o:p></p>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'>This isn't really a general purpose ODBC list, but
using the -v option of isql tends to yield more verbose output (imagine that!)<br>
<br>
so you get:<br>
isql -vvv freeswitch freeswitch freeswitch<br>
[IM002][unixODBC][Driver Manager]Data source name not found, and no default
driver specified<br>
[ISQL]ERROR: Could not SQLConnect<br>
<br>
<br>
as opposed to:<br>
isql freeswitch freeswitch freeswitch<br>
[ISQL]ERROR: Could not SQLConnect<br>
<br>
-Ray<o:p></o:p></span></font></p>
</div>
</body>
</html>