List:General Discussion« Previous MessageNext Message »
From:Stan Sebastian Date:March 19 2004 2:20pm
Subject:RE: Load data + odbc ?
View as plain text  
I'm soryy for the delay, but i've tried to resolve this on my own. Not a
chance.

> h = SqlConnect("transfer")
> r=sqlexec(h,vQuery)
> if r<0
>   ? aError( laErrors )
>   _cliptext = laErrors[1,2]
> endif
>
> Paste the result here.

The error i get on the BoxB, is  OF COURSE!! : "Connectivity error:
[MySQL][ODBC 3.51 Driver][mysqld-3.23.52-nt]The used command is not allowed
with this MySQL version"

Although it works from the other client (BoxA) !!!


I've put the "local-infile=1" in my.ini on the BoxC(the server), i've
created c:\my.cnf on the client BoxB........ and NADA! the same error.

I think it's something from the client side (BoxB) because with the same
server it works from the BoxA, but i cant figure it out!!


----- Original Message -----
From: "Carl Karsten" <carl@stripped>
To: <mysql@stripped>
Sent: Friday, March 12, 2004 3:57 PM
Subject: Re: Load data + odbc


> > > > The first test i've done was on, lets say, BoxA and it worked just
fine.
> > > > Than, i said,'ok, lets install the client on another WKS' that is
BoxB.
> > And
> > > > from BoxB it's not working.
> > > >
> > > > > > I've got 2 workstations and a server on which i have Mysql
3.23.52 -
> > nt.
> > > > >
> > > > > Lets call the workstations BoxA and BoxB, and the server BoxC.
> > > > >
> > > > > >
> > > > > > The clients are build in Visual FoxPro and use MyODBC for
connecting
> > to
> > > > > > server.
> > > > > >
> > > > > > >From both WKS statements like select, insert, update,
> delete
work
> > just
> > > > fine,
> > > > > > but when i want to 'LOAD DATA local INFILE' it works OK
> only
from
> > one
> > > > WKS.
> > > > >
> > > >
> > > > Here's my code
> > > >
> > > >   open database opreluare
> > > >
> > > >   CREATE CONNECTION transfer ;
> > > >   DATASOURCE "MYSQLSERVER" ;
> > > >   USERID "incarc" PASSWORD "incarc" ;
> > > >   DATABASE "OCUPAT"
> > > >
> > > >   vQuery="LOAD DATA local INFILE 'c:/ocupat/preluare/baza.txt' into
> > table
> > > > baza FIELDS TERMINATED BY ''"
> > > >
> > > >   r=sqlexec(sqlconnect("transfer"),vQuery)
> > > >
> > > > and r is -1 after that.
>
> h = SqlConnect("transfer")
> r=sqlexec(h,vQuery)
> if r<0
>   ? aError( laErrors )
>   _cliptext = laErrors[1,2]
> endif
>
> Paste the result here.
>
> Carl K
>
>
>
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    http://lists.mysql.com/mysql?unsub=1
Thread
RE: Load data + odbc ?Stan Sebastian19 Mar