Re: Problem with load data and NULL

2005-11-08 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, "Barbara Deaton" <[EMAIL PROTECTED]> writes: > Thank you for the idea. It fixed my date problem, but my numeric column is > still 0 and NOT "NULL." Here's what I did: > create table a ( > d date default null, > e smallint default null ); > CREATE TEMPO

RE: Re: Problem with load data and NULL

2005-11-08 Thread Barbara Deaton
Fuchs Sent: Saturday, November 05, 2005 10:03 AM To: mysql@lists.mysql.com Subject: Re: Problem with load data and NULL In article <[EMAIL PROTECTED]>, "Barbara Deaton" <[EMAIL PROTECTED]> writes: > All, > I need help with using load data to load a text file that is crea

Re: Problem with load data and NULL

2005-11-05 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, "Barbara Deaton" <[EMAIL PROTECTED]> writes: > All, > I need help with using load data to load a text file that is created by > another application. > I have a text file that contains 2 columns, date and smallint and 2 rows: > d,e > 2005-12-31, > ,2 > In the abo

Problem with load data and NULL

2005-11-04 Thread Barbara Deaton
All, I need help with using load data to load a text file that is created by another application. I have a text file that contains 2 columns, date and smallint and 2 rows: d,e 2005-12-31, ,2 In the above example the first row, column e should be NULL and the second row column d should be NULL

problem with LOAD DATA

2005-02-22 Thread Dana Sharvit - M
Hello, I am using mysql Ver 14.6 Distrib 4.1.5-gamma, for sun-solaris2.8 (sparc) I am having a problem with using the following query from a perl program: LOAD DATA LOCAL INFILE ? REPLACE INTO TABLE $table The error I get is: DBD::mysql::st execute failed: The used command is not allowed with t

Re: Problem with load data infile and user's privileges

2002-06-15 Thread Jason Englehardt
On Sat, 15 Jun 2002, Sergey Bondar wrote: > OS Linux Red Hat 7.2 > MySql 3.23.41 > > Hi All! > That is my steps. > > With root privileges > I doing: > GRANT ALL ON mydb.* TO client@localhost identified by "pwd"; > I got: > OK The user needs the file privilege. Granting all on mydb.* does not giv

Problem with load data infile and user's privileges

2002-06-15 Thread Sergey Bondar
OS Linux Red Hat 7.2 MySql 3.23.41 Hi All! That is my steps. With root privileges I doing: GRANT ALL ON mydb.* TO client@localhost identified by "pwd"; I got: OK With client privileges !!! I doing: mysql -u client -p passwd CREATE DATABASE mydb; I got: OK CREATE TABLE mytable ( col01 CHAR(

Re: Problem with load data infile and user's privileges

2002-06-14 Thread Paul DuBois
At 20:23 -0400 6/14/02, Sergey wrote: >OS Linux Red Hat 7.2 >MySql 3.23.41 > >Hi All! >That is my steps. > >With root privileges >I doing: >GRANT ALL ON mydb.* TO client@localhost identified by "pwd"; >I got: >OK > >With client privileges !!! >I doing: >mysql -u client -p >passwd >CREATE DATAB

Re: Problem with load data infile and user's privileges

2002-06-14 Thread Galen Wright-Watson
On Fri, 14 Jun 2002, Sergey wrote: > With root privileges > I doing: > GRANT ALL ON mydb.* TO client@localhost identified by "pwd"; > I got: > OK > > > Then I doing: > LOAD DATA INFILE "/usr/data/myfile" INTO TABLE tab01; > I got: > ERROR 1045 Access denied fot user: 'client@localhost' (Using

Problem with load data infile and user's privileges

2002-06-14 Thread Sergey
OS Linux Red Hat 7.2 MySql 3.23.41 Hi All! That is my steps. With root privileges I doing: GRANT ALL ON mydb.* TO client@localhost identified by "pwd"; I got: OK With client privileges !!! I doing: mysql -u client -p passwd CREATE DATABASE mydb; I got: OK CREATE TABLE mytable ( col01 CHAR(

Re: Re: problem with load data local infile

2002-04-21 Thread Paul DuBois
At 23:34 -0500 4/20/02, Darren Vollmer wrote: > > >Both files are world readable. >> >> How do you know this? > >Because FTP tells me they are. > >> >> Also, when you say "client machine", what do you mean? In particular, >> are the web server and the MySQL servers running on the same machine

Re: Re: problem with load data local infile

2002-04-20 Thread Darren Vollmer
> >Both files are world readable. > > How do you know this? Because FTP tells me they are. > > Also, when you say "client machine", what do you mean? In particular, > are the web server and the MySQL servers running on the same machine? > Client machine is the machine running the webserver and

Re: Re: problem with load data local infile

2002-04-20 Thread Fiasco
get a different error message then can't get stat of 'filename' (Errcode 2)? Thanks for your help and patience Darren - Original Message - From: "Fiasco" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 20, 2002 7:36 PM

Fw: Re: problem with load data local infile

2002-04-20 Thread Fiasco
- Original Message - From: "Fiasco" <[EMAIL PROTECTED]> To: "Paul DuBois" <[EMAIL PROTECTED]> Sent: Saturday, April 20, 2002 7:28 PM Subject: Re: Re: problem with load data local infile > > > > >The error I receive is: > > >Can&

Fw: Re: problem with load data local infile

2002-04-20 Thread Fiasco
- Original Message - From: "Fiasco" <[EMAIL PROTECTED]> To: "Paul DuBois" <[EMAIL PROTECTED]> Sent: Saturday, April 20, 2002 6:28 PM Subject: Re: Re: problem with load data local infile > The error I receive is: > Can't stat file 'filena

Re: Re: problem with load data local infile

2002-04-20 Thread Paul DuBois
Message - >From: "Victoria Reznichenko" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Saturday, April 20, 2002 6:14 AM >Subject: Re: Re: problem with load data local infile > > >> Darren, >> Saturday, April 20, 2002, 1:23:54 PM, you wrote: >

Re: Re: Re: problem with load data local infile

2002-04-20 Thread Victoria Reznichenko
Darren, Saturday, April 20, 2002, 2:34:06 PM, you wrote: DV> The file is in a world readable directory tree. DV> Shouldn't the LOCAL qualifier make mysql read the file from the client DV> running and not the host? DV> I tried to LOAD DATA LOCAL INFILE on using the name (and no path) of a mysql

Re: Re: problem with load data local infile

2002-04-20 Thread Darren Vollmer
server? - Original Message - From: "Victoria Reznichenko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 20, 2002 6:14 AM Subject: Re: Re: problem with load data local infile > Darren, > Saturday, April 20, 2002, 1:23:54 PM, you wrote: >

Re: Re: problem with load data local infile

2002-04-20 Thread Victoria Reznichenko
Darren, Saturday, April 20, 2002, 1:23:54 PM, you wrote: DV> The file does exist. The file and its directory are 0777 permission. Such permissions are setting on all dirs, that contain path to your dir? Don't forget that you should have permissions to go through dirs ... DV> Darren -- For

Re: problem with load data local infile

2002-04-20 Thread Darren Vollmer
The file does exist. The file and its directory are 0777 permission. Darren - Original Message - From: "Victoria Reznichenko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 20, 2002 4:32 AM Subject: Re: problem with load data local infile >

Re: problem with load data local infile

2002-04-20 Thread Victoria Reznichenko
Darren, Friday, April 19, 2002, 3:33:50 PM, you wrote: DV> I am having problems with load data local infile. DV> The mysql host server is running 3.23.23 DV> I was able to successfully use load data local infile before to import data DV> off of a client machine onto the mysql host but now all i

Fw: problem with load data local infile (repeat)

2002-04-19 Thread Darren Vollmer
I never saw this message make this list so I'm reposting it. - Original Message - From: "Darren Vollmer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 19, 2002 7:33 AM Subject: problem with load data local infile > I am having proble

problem with load data local infile

2002-04-19 Thread Darren Vollmer
I am having problems with load data local infile. The mysql host server is running 3.23.23 I was able to successfully use load data local infile before to import data off of a client machine onto the mysql host but now all i get is a can't stat file errcode2 message. I know that the pathname I

Problem with Load Data InFile

2002-01-27 Thread Hayan Al Mamoun
Dear all, I had a problem with load data infile syntax LOAD DATA INFILE '$file' REPLACE INTO TABLE $table FIELDS TERMINATED BY '|' that the original data has already carriage returns was considered as new records in the database, I solved it by using the following syntax: LOA

Re: Problem with LOAD DATA INFILE

2001-12-31 Thread David J Jackson
Are you using mysqlimport utility? If not that may be you answer? If so what flags are you setting? david > HI ALL: Happy New Year ;) > I have a text file generated from MSAccess database, one of the > fields (Long Text) have Carriage returns within the text, So > the data of some records f

Problem with LOAD DATA INFILE

2001-12-31 Thread Hayan Al Mamoun
HI ALL: Happy New Year ;) I have a text file generated from MSAccess database, one of the fields (Long Text) have Carriage returns within the text, So the data of some records falls in more than one line in the text file, when I'm using the SQL statement LOAD DATA INFILE... I have only the fir

RE: Problem with LOAD DATA INFILE

2001-10-31 Thread Rick Emery
PROTECTED] Subject: Problem with LOAD DATA INFILE Hello all, I have a problem. I am able to get a copy of a text file which resides on another server for a task I am completing. What I need to do is import this text into a database table on a nightly basis, and I am trying to set this up via PHP so it

Problem with LOAD DATA INFILE

2001-10-30 Thread Michael Benbow
Hello all, I have a problem. I am able to get a copy of a text file which resides on another server for a task I am completing. What I need to do is import this text into a database table on a nightly basis, and I am trying to set this up via PHP so it is all automated. I have one problem tho