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
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
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)