| Mailing List | | Home | | MySQL General - General MySQL discussion | | MaxDB - Everything about MaxDB, formerly known as SAP DB | | MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP | | Java Help - Mostly related to the MySQL Connector/J driver | | ODBC - ODBC with the MySQL Connector/ODBC driver | | Perl - Perl support for MySQL with DBI and DBD::mysql | | MySQL++ - Programming with the C++ API to MySQL |
|
|
  | |  | Load data + odbc ? | Load data + odbc ? 2004-03-19 - By Stan Sebastian
Back 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@(protected) >
To: <mysql@(protected) >
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=s.stan
@(protected)
--
MySQL General Mailing List
For list archives:
http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/mysql?unsub=mysql
@(protected)
|
|
 |