style=3D'font-size:10.0pt;
font-family:Arial'>Dear sir/Madam
style=3D'font-size:10.0pt;
font-family:Arial'>I am trying to connect MYSQL server using OTL =
4.0
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'mso-spacerun:yes'> &nbs=
p;
otl_connect db;
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'mso-tab-count:1'>  =
;
style=3D'mso-spacerun:yes'> =
otl_connect::otl_initialize(); //
initialize the environment
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'mso-tab-count:1'>  =
;
style=3D'mso-spacerun:yes'> =
try
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'mso-spacerun:yes'> &nbs=
p;
{
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'mso-spacerun:yes'> &nbs=
p;  =
;
db.rlogon("root/rootpwd@mysql");
>
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'mso-spacerun:yes'> &nbs=
p;
}
style=3D'font-size:10.0pt;
font-family:Arial'>but
style=3D'mso-bidi-font-style:normal'>
style=3D'font-weight:bold;mso-bidi-font-weight:
normal;font-style:italic;mso-bidi-font-style:normal'>db.rlog on( "root=
/rootpwd@mysql")
function =
through the
following error
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'mso-bidi-font-weight:
normal'>
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold ;mso-bidi-fon=
t-weight:
normal;font-style:italic;mso-bidi-font-style:normal'>[DataDi rect][ODBC =
XML
driver][XML][Closed Integrator Base]Insufficent =
connection
style=3D'mso-bidi-font-weight:
normal'>
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold ;mso-bidi-fon=
t-weight:
normal;font-style:italic;mso-bidi-font-style:normal'>
style=3D'mso-spacerun:yes'> information available to connect =
to any
underlying providers.
style=3D'mso-bidi-font-weight:
normal'>
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold ;mso-bidi-fon=
t-weight:
normal;font-style:italic;mso-bidi-font-style:normal'>
style=3D'mso-spacerun:yes'> HY000
style=3D'mso-bidi-font-weight:normal'>
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold ;mso-bidi-fon=
t-weight:
normal'>
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>In command mode I could connect to MySQL server using =
style=3D'mso-bidi-font-weight:normal'>
style=3D'mso-bidi-font-style:normal'>
style=3D'font-weight:bold;mso-bidi-font-weight:normal;font-s tyle:italic;
mso-bidi-font-style:normal'>root as user and
style=3D'mso-bidi-font-weight:normal'>
style=3D'mso-bidi-font-style:normal'>
style=3D'font-weight:bold;mso-bidi-font-weight:normal;font-s tyle:italic;
mso-bidi-font-style:normal'>rootpwd as a password. =
style=3D'font-size:10.0pt;
font-family:Arial'>But through OTL I am not able to =
connect.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Windows Registry shows
style=3D'mso-spacerun:yes'> MySQL ODBC 3.51 Driver is =
available.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>In VC++ I am linking the following libraries =
style=3D'mso-bidi-font-style:
normal'>
style=3D'font-size:10.0pt;font-family:Arial;
font-weight:bold;mso-bidi-font-weight:normal;font-style:ital ic;mso-bidi-f=
ont-style:
normal'> kernel32.lib =
user32.lib
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib
style=3D'mso-bidi-font-style:
normal'>
style=3D'font-size:10.0pt;font-family:Arial;
font-weight:bold;mso-bidi-font-weight:normal;font-style:ital ic;mso-bidi-f=
ont-style:
normal'> uuid.lib =
odbc32.lib
odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib
style=3D'mso-bidi-font-style:
normal'>
style=3D'font-size:10.0pt;font-family:Arial;
font-weight:bold;mso-bidi-font-weight:normal;font-style:ital ic;mso-bidi-f=
ont-style:
normal'> shell32.lib =
ole32.lib
oleaut32.lib uuid.lib odbc32.lib =
odbccp32.lib
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>I am not sure whether I am missing any lib files. =
style=3D'mso-spacerun:yes'> MySQL server running on Windows =
machine
is 4.0.24-nt
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Actually I saw two dlls in
face=3DArial>
style=3D'font-family:Arial'>windows\system32 =
style=3D'font-size:12.0pt;
font-family:Arial'>
style=3D'mso-spacerun:yes'> &nbs=
p;
size=3D2
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>1)
size=3D2>
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>myodbc3.dll =
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'mso-spacerun:yes'> &nbs=
p;
2) myodbc3S.dll
style=3D'font-family:
Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>When I link the above lib files. I get the following =
error.
style=3D'font-size:10.0pt;
font-family:Arial'>
size=3D2
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold ;
mso-bidi-font-weight:normal'>
style=3D'mso-spacerun:yes'>
style=3D'mso-spacerun:yes'> LINK
: fatal error LNK1104: cannot open file =
"myodbc3.lib"
size=3D2
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial;font-weight:bold ;
mso-bidi-font-weight:normal'>
style=3D'mso-spacerun:yes'> =
Error
executing link.exe.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Please advice me. Also you can see SQL.log for more
information.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks
style=3D'font-size:
10.0pt;font-family:Arial'>Krishna
size=3D2
face=3DArial>
style=3D'font-size:10.0pt;font-family:Arial'>
>
style=3D'font-size:10.0pt;
font-family:Arial'>