RE: Select Into OUTFILE problem

2009-05-14 Thread Gavin Towey
Hi Bruce, SELECT ... INTO OUTFILE always creates the file local to the database server. If you want to dump results where your perl script is running you'll have to use another method such as receiving the results of the query normally and writing the file in the perl script. Regards

Re: Select Into OUTFILE problem

2009-05-14 Thread Bruce Ferrell
Thanks all who replied. After I posted I kept looking and found it... Also had folks point it out to me. Your suggestion is what I ended up doing. Bruce Gavin Towey wrote: Hi Bruce, SELECT … INTO OUTFILE always creates the file local to the database server. If you want to dump

Select Into OUTFILE problem

2009-05-13 Thread Bruce Ferrell
I have a bit of perl code that ends with an error: $sql=SELECT convert_tz( a.stamp,'GMT','$tz' ) as ts, a.status, a.reason, a.tl INTO OUTFILE '/application/result.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '\' LINES TERMINATED BY '\n' FROM alerts a

select into outfile php problem

2008-10-21 Thread kalin m
hi all... i have a strange problem with a simple script that is doing select into outfile... the thing just does that. it does a select into an outfile. if i print the query that's passed to mysql_result in the script and then copy it and paste it z`into the mysql client it works fine

Re: select ... into outfile=stdout ?

2008-10-20 Thread Moon's Father
harms [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 5:06 AM To: 'mysql' Subject: select ... into outfile=stdout ? hi list, i need some options from outfile (exspecialy:FIELDS TERMINATED BY) and would like to send the output to stdout to further processing. unfortunately

Re: select ... into outfile=stdout ?

2008-10-19 Thread walter harms
- From: walter harms [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 5:06 AM To: 'mysql' Subject: select ... into outfile=stdout ? hi list, i need some options from outfile (exspecialy:FIELDS TERMINATED BY) and would like to send the output to stdout to further processing

Re: select ... into outfile=stdout ?

2008-10-19 Thread walter harms
for LOAD DATA INFILE. See Section 12.2.6, LOAD DATA INFILE Syntax. By default, its output to stdout. Give it a try !!! -Original Message- From: walter harms [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 5:06 AM To: 'mysql' Subject: select ... into outfile=stdout ? hi

select ... into outfile=stdout ?

2008-10-16 Thread walter harms
hi list, i need some options from outfile (exspecialy:FIELDS TERMINATED BY) and would like to send the output to stdout to further processing. unfortunately i found no proper way to force the output to stdout. for now i use the redirection of the mysql -NB output but the interface lacks the

RE: select ... into outfile=stdout ?

2008-10-16 Thread Rolando Edwards
meaning as the corresponding clauses for LOAD DATA INFILE. See Section 12.2.6, LOAD DATA INFILE Syntax. By default, its output to stdout. Give it a try !!! -Original Message- From: walter harms [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 5:06 AM To: 'mysql' Subject: select

how to escape new lines using select * into outfile

2008-05-13 Thread Saravanan
Hi all, I want to export the values based on the condition. I export them as csv. select * into outfile 'filename.csv' from table; the problem is one field in table has many lines, means with \n. I couldn't import the values into the xls sheet. any ideas how to escape the new line characters

RE: how to escape new lines using select * into outfile

2008-05-13 Thread Jerry Schwartz
new lines using select * into outfile Hi all, I want to export the values based on the condition. I export them as csv. select * into outfile 'filename.csv' from table; the problem is one field in table has many lines, means with \n. I couldn't import the values into the xls sheet. any ideas

Re: how to escape new lines using select * into outfile

2008-05-13 Thread Velen
Try using: select * into outfile 'filename.csv' fields enclosed by '' terminated by ',' lines terminated by '\n' from table Regards, Velen - Original Message - From: Saravanan [EMAIL PROTECTED] To: mysql mysql@lists.mysql.com Sent: Tuesday, May 13, 2008 9:26 PM Subject: how to escape

Re: how to escape new lines using select * into outfile

2008-05-13 Thread Saravanan
* into outfile To: [EMAIL PROTECTED] Cc: mysql@lists.mysql.com Date: Wednesday, May 14, 2008, 1:35 AM Try using: select * into outfile 'filename.csv' fields enclosed by '' terminated by ',' lines terminated by '\n' from table Regards, Velen - Original Message - From

mysqldump: Got error: 1: Can't create/write to file 'dumpdir/tablename.txt' (Errcode: 13) when executing 'SELECT INTO OUTFILE'

2008-02-22 Thread Mike Spreitzer
So I am trying to use mysqldump --tab for the first time. I am running into the same problem everybody does on their first try --- Errcode: 13. I have set the permissions on the target directory to be completely liberal --- anybody can do anything with it --- and I still get Errcode: 13. I

Re: mysqldump: Got error: 1: Can't create/write to file 'dumpdir/tablename.txt' (Errcode: 13) when executing 'SELECT INTO OUTFILE'

2008-02-22 Thread Jed Reynolds
Mike Spreitzer wrote: So I am trying to use mysqldump --tab for the first time. I am running into the same problem everybody does on their first try --- Errcode: 13. I have set the permissions on the target directory to be completely liberal --- anybody can do anything with it --- and I still

Re: mysqldump: Got error: 1: Can't create/write to file 'dumpdir/tablename.txt' (Errcode: 13) when executing 'SELECT INTO OUTFILE'

2008-02-22 Thread Mike Spreitzer
' (Errcode: 13) when executing 'SELECT INTO OUTFILE' [EMAIL PROTECTED] /]# ls -ld /dump1 drwxrwxrwx 2 mysql mysql 4096 Feb 22 19:11 /dump1 [EMAIL PROTECTED] /]# ls -l /dump1 total 16 -rw-r--r-- 1 mysql mysql 29 Feb 22 18:38 foo.bar -rw-r--r-- 1 root root 742 Feb 22 19:11 red1_p2.sql [EMAIL

Re: mysqldump: Got error: 1: Can't create/write to file 'dumpdir/tablename.txt' (Errcode: 13) when executing 'SELECT INTO OUTFILE'

2008-02-22 Thread Jed Reynolds
what happens when you delete the files that are already in there? Looks like you're dumping to a file owned by root. Jed -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysqldump: Got error: 1: Can't create/write to file 'dumpdir/tablename.txt' (Errcode: 13) when executing 'SELECT INTO OUTFILE'

2008-02-22 Thread Mike Spreitzer
to file '/dump1/red1_p2.txt' (Errcode: 13) when executing 'SELECT INTO OUTFILE' [EMAIL PROTECTED] /]# ls -l dump1 total 8 -rw-r--r-- 1 root root 742 Feb 22 20:46 red1_p2.sql [EMAIL PROTECTED] /]# ps axlw | grep mysqld 0 0 8494 1 25 0 3408 944 wait Spts/5 0:00 /bin/sh /usr

Re: mysqldump: Got error: 1: Can't create/write to file 'dumpdir/tablename.txt' (Errcode: 13) when executing 'SELECT INTO OUTFILE'

2008-02-22 Thread Jed Reynolds
: mysqldump: Got error: 1: Can't create/write to file '/dump1/red1_p2.txt' (Errcode: 13) when executing 'SELECT INTO OUTFILE' I'm reading thru http://dev.mysql.com/doc/refman/5.0/en/select.html and it says that it will not write to an already existing file (so you deleted the old files

Select into outfile on nfs mount point

2007-03-26 Thread David Ruggles
I'm unable to select into an outfile, the path is in an nfs mount point. I'm sure it's some sort of permissions issue or something, but I can't figure it out. I've googled everything I can think of and haven't found anything. Any help or suggestions would be greatly appreciated. The error I'm

RE: Select into outfile on nfs mount point

2007-03-26 Thread Jerry Schwartz
[mailto:[EMAIL PROTECTED] Sent: Monday, March 26, 2007 11:51 AM To: mysql@lists.mysql.com Subject: Select into outfile on nfs mount point I'm unable to select into an outfile, the path is in an nfs mount point. I'm sure it's some sort of permissions issue or something, but I can't figure it out

RE: Select into outfile on nfs mount point

2007-03-26 Thread David Ruggles
] [mailto:[EMAIL PROTECTED] Sent: Monday, March 26, 2007 12:01 PM To: David Ruggles Subject: Re: Select into outfile on nfs mount point the file on the mount point has to be able to be created, and read/write by the user that is invoking the mysql call. e.g., if this is begin done at the commandline

RE: Select into outfile on nfs mount point

2007-03-26 Thread David Ruggles
, March 26, 2007 12:37 PM To: David Ruggles Subject: RE: Select into outfile on nfs mount point Date: Monday, March 26, 2007 11:50:59 AM -0400 From: David Ruggles [EMAIL PROTECTED] To: mysql@lists.mysql.com Subject: Select into outfile on nfs mount point I'm unable to select into an outfile

RE: Select into outfile on nfs mount point

2007-03-26 Thread David Ruggles
Message- From: Jerry Schwartz [mailto:[EMAIL PROTECTED] Sent: Monday, March 26, 2007 12:06 PM To: 'David Ruggles'; mysql@lists.mysql.com Subject: RE: Select into outfile on nfs mount point Can you touch the file name? It might be a permission issue at the directory level, it has to be writeable

Charset for SELECT ... INTO OUTFILE

2006-10-09 Thread imre
Hi, I have a database where the database character set is utf-8 and some rows are ascii. I want to save the results of some queries, and SELECT ... INTO OUTFILE looks like an easy way to do it. But I need the output in ucs-2. Is there any way to specify the charset for SELECT ... INTO OUTFILE

Re: Charset for SELECT ... INTO OUTFILE

2006-10-09 Thread Visolve DB Team
, 2006 2:23 PM Subject: Charset for SELECT ... INTO OUTFILE Hi, I have a database where the database character set is utf-8 and some rows are ascii. I want to save the results of some queries, and SELECT ... INTO OUTFILE looks like an easy way to do it. But I need the output in ucs-2

~problem with select into outfile~

2006-04-13 Thread Mohammed Abdul Azeem
Hi Iam having a problem using select into outfile command, iam getting the following error. can anyone help me trace the problem. mysql SELECT * INTO OUTFILE'/home/public1/data.txt' FROM temp_table WHERE last_time_update = 2006-04-01; ERROR 1 (HY000): Can't create/write to file '/home/public1

RE: ~problem with select into outfile~

2006-04-13 Thread Addison, Mark
From: Mohammed Abdul Azeem Sent: 13 April 2006 07:29 Hi Iam having a problem using select into outfile command, iam getting the following error. can anyone help me trace the problem. mysql SELECT * INTO OUTFILE'/home/public1/data.txt' FROM temp_table WHERE last_time_update = 2006-04-01

Re: how to suppress NULL values in SELECT ... INTO OUTFILE ?

2006-04-02 Thread Jorrit Kronjee
Subject: Re: how to suppress NULL values in SELECT ... INTO OUTFILE ? At 13:29 +0100 4/1/06, C.R.Vegelin wrote: Hi everyone, I am struggling to make a CSV file, with rows like: 1;2;;4;;2;9 where NULL values are suppressed in the CSV file. I tried the following alternatives: a) Select

Re: how to suppress NULL values in SELECT ... INTO OUTFILE ?

2006-04-02 Thread C.R.Vegelin
without NULLs or quotes. Regards, Cor - Original Message - From: Jorrit Kronjee [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Sunday, April 02, 2006 11:33 AM Subject: Re: how to suppress NULL values in SELECT ... INTO OUTFILE ? Cor, You can set the enclosing character

how to suppress NULL values in SELECT ... INTO OUTFILE ?

2006-04-01 Thread C.R.Vegelin
Hi everyone, I am struggling to make a CSV file, with rows like: 1;2;;4;;2;9 where NULL values are suppressed in the CSV file. I tried the following alternatives: a) Select ... Into Outfile ... Fields Terminated By ';' Escaped By '' Lines Terminated By '\r\n' ... but this generates

Re: how to suppress NULL values in SELECT ... INTO OUTFILE ?

2006-04-01 Thread Paul DuBois
At 13:29 +0100 4/1/06, C.R.Vegelin wrote: Hi everyone, I am struggling to make a CSV file, with rows like: 1;2;;4;;2;9 where NULL values are suppressed in the CSV file. I tried the following alternatives: a) Select ... Into Outfile ... Fields Terminated By ';' Escaped By '' Lines Terminated

Re: how to suppress NULL values in SELECT ... INTO OUTFILE ?

2006-04-01 Thread C.R.Vegelin
- From: Paul DuBois [EMAIL PROTECTED] To: C.R.Vegelin [EMAIL PROTECTED]; mysql@lists.mysql.com Sent: Saturday, April 01, 2006 6:11 PM Subject: Re: how to suppress NULL values in SELECT ... INTO OUTFILE ? At 13:29 +0100 4/1/06, C.R.Vegelin wrote: Hi everyone, I am struggling to make a CSV file

Can't select to outfile

2006-03-02 Thread Bruce Bales
I'm using mysql 3.23.58 on linux. I recently upgraded from RedHat 9 to Fedora 3 and now I am unable to write to an outfile. If I have started mysql with the simple mysql I get 'access denied' even if I am trying to put it into my home directory. mysql select lname,fname,mname,addr,city,stzip

Re: Can't select to outfile

2006-03-02 Thread unplug
You have to enable the file_permission for the user in order to create file. On 3/3/06, Bruce Bales [EMAIL PROTECTED] wrote: I'm using mysql 3.23.58 on linux. I recently upgraded from RedHat 9 to Fedora 3 and now I am unable to write to an outfile. If I have started mysql with the simple

BLOCK SELECT INTO OUTFILE ?

2005-08-24 Thread Alejandro Gad
Hi, I am going to implement a mysql hosting, and I would to make a question, if a mysql-user with only a SELECT privilege make this query: SELECT * FROM table1 INTO OUTFILE '/mysqldb/data/test.sql'; the result is a file in this path with the content of the table. I could think that a malicious

Re: BLOCK SELECT INTO OUTFILE ?

2005-08-24 Thread averyanov
with the content of the table. I could think that a malicious user can do several querys like this and fill my disk. How could I secure this command ? According to mysql manual The SELECT ... INTO OUTFILE 'file_name' form of SELECT writes the selected rows to a file. The file is created

Re: BLOCK SELECT INTO OUTFILE ?

2005-08-24 Thread Pat Adams
in this path with the content of the table. I could think that a malicious user can do several querys like this and fill my disk. How could I secure this command ? From the manual: http://dev.mysql.com/doc/mysql/en/select.html The SELECT ... INTO OUTFILE 'file_name' form of SELECT writes the selected

SELECT ... INTO OUTFILE ... and LOAD DATA INFILE ... with a key

2005-08-19 Thread suomi
Hi listers I once asked if there is an SQL syntax permitting to copy a row in the same table. I got no answer, so there is no such syntax. now i meant to have found a work-around using (see subject). problem is, that when i do a SELECT * ... INTO OUTFILE .. i will also catch the PRIMARY KEY

RE: SELECT ... INTO OUTFILE ... and LOAD DATA INFILE ... with a key

2005-08-19 Thread Gordon Bruce
} If your PRIMARY KEY is an auto_increment field, just omit foo_ID from the columns list in both the INSERT and SELECT. -Original Message- From: suomi [mailto:[EMAIL PROTECTED] Sent: Friday, August 19, 2005 7:08 AM To: mysql@lists.mysql.com Subject: SELECT ... INTO OUTFILE ... and LOAD DATA

Re: SELECT ... INTO OUTFILE ... and LOAD DATA INFILE ... with a key

2005-08-19 Thread Thomas Spahni
no answer, so there is no such syntax. now i meant to have found a work-around using (see subject). problem is, that when i do a SELECT * ... INTO OUTFILE .. i will also catch the PRIMARY KEY column if there is one and the LOAD DATA INFILE ... of this file will fail because of duplicate keys. i

Re: SELECT ... INTO OUTFILE ... and LOAD DATA INFILE ... with a key

2005-08-19 Thread Michael Stassen
Thomas Spahni wrote: Hi suomi, it can be done with a temporary table. See the following example. Regards, Thomas Spahni snip CREATE TEMPORARY TABLE duptemp SELECT * FROM duprows WHERE id = 2; ALTER TABLE duptemp CHANGE id id INT NULL; UPDATE duptemp SET id = NULL; INSERT INTO duprows

SELECT INTO OUTFILE with UNION

2004-12-23 Thread Lynn Bender
Greetings from Austin, TX: What is the proper syntax for SELECT INTO OUTFILE in a statement with a UNION keyword, like the following: SELECT Addresses FROM editors UNION SELECT Addresses FROM authors Thanks, Lynn Bender UnsubCentral Secure Email List

Space in SELECT INTO OUTFILE

2004-11-22 Thread regis
Please, MySQL doesn´t understands the following special escape sequence: ' \s' ? I want spaces in the export. How to do? Greetings. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: SELECT... INTO OUTFILE problem

2004-10-22 Thread Egor Egorov
Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Exception occured in Microsoft OLE DB Provider for ODBC Drivers, [MySQL][ODBC 3.51 Driver][mysqld-4.0.20a-nt]Can't create/write to file 'C:\data_out\day234\data_out.txt' (Errcode: 2) [EMAIL PROTECTED] egor]$ perror 2 System error: 2 = No such

RE: SELECT... INTO OUTFILE problem

2004-10-21 Thread Jay Blanchard
[snip] Exception occured in Microsoft OLE DB Provider for ODBC Drivers, [MySQL][ODBC 3.51 Driver][mysqld-4.0.20a-nt]Can't create/write to file 'C:\data_out\day234\data_out.txt' (Errcode: 2) So I copy the query statement and send via PhpMyAdmin, it ended up as below #1 - Can't create/write to

Re: SELECT... INTO OUTFILE problem

2004-10-21 Thread Ferhat BINGOL
- From: Jay Blanchard [EMAIL PROTECTED] To: Mysql General (E-mail) [EMAIL PROTECTED] Sent: Thursday, October 21, 2004 10:35 PM Subject: RE: SELECT... INTO OUTFILE problem [snip] Exception occured in Microsoft OLE DB Provider for ODBC Drivers, [MySQL][ODBC 3.51 Driver][mysqld-4.0.20a-nt]Can't

RE: SELECT... INTO OUTFILE problem

2004-10-21 Thread Damon Card
As Jay said, it's either a permission issue or the file already exists. MySQL will not overwrite a file that already exists. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, October 21, 2004 3:35 PM To: Mysql General (E-mail) Subject: RE: SELECT

SELECT into OUTFILE... Can I add column names?

2004-04-06 Thread David L. Van Brunt, Ph.D.
I've scoured the online documentation, and I have a good SELECT into OUTFILE query that gives me what I want... Except that there is no 1st row with column names. Hoping I missed something obvious... Any pointers on this one? -- David L. Van Brunt, Ph.D. Outlier Consulting Development mailto

Re: SELECT into OUTFILE... Can I add column names?

2004-04-06 Thread Paul DuBois
At 20:43 -0500 4/6/04, David L. Van Brunt, Ph.D. wrote: I've scoured the online documentation, and I have a good SELECT into OUTFILE query that gives me what I want... Except that there is no 1st row with column names. Hoping I missed something obvious... Any pointers on this one? You can't do

Re: SELECT into OUTFILE... Can I add column names?

2004-04-06 Thread David L. Van Brunt, Ph.D.
a good SELECT into OUTFILE query that gives me what I want... Except that there is no 1st row with column names. Hoping I missed something obvious... Any pointers on this one? You can't do it with SELECT ... INTO OUTFILE. -- David L. Van Brunt, Ph.D. Outlier Consulting Development mailto

Re: SELECT into OUTFILE... Can I add column names?

2004-04-06 Thread Paul DuBois
. The following rows will be the data. Those are tabs between the columns. On 4/6/04 21:43, Paul DuBois [EMAIL PROTECTED] wrote: At 20:43 -0500 4/6/04, David L. Van Brunt, Ph.D. wrote: I've scoured the online documentation, and I have a good SELECT into OUTFILE query that gives me what I want... Except

Re: SELECT into OUTFILE... Can I add column names?

2004-04-06 Thread David L. Van Brunt, Ph.D.
/04 21:43, Paul DuBois [EMAIL PROTECTED] wrote: At 20:43 -0500 4/6/04, David L. Van Brunt, Ph.D. wrote: I've scoured the online documentation, and I have a good SELECT into OUTFILE query that gives me what I want... Except that there is no 1st row with column names. Hoping I missed

4.1.1 Problem with SELECT INTO OUTFILE

2004-03-05 Thread Chris Fossenier
It seems that each time we select into an OUTFILE that already exists (re-use a name) the server crashes. Anyone have any ideas if this is a setting or just a bug? Thanks. Chris.

Re: 4.1.1 Problem with SELECT INTO OUTFILE

2004-03-05 Thread Egor Egorov
Chris Fossenier [EMAIL PROTECTED] wrote: It seems that each time we select into an OUTFILE that already exists (re-use a name) the server crashes. Anyone have any ideas if this is a setting or just a bug? It's known bug: http://bugs.mysql.com/bug.php?id=2123 -- For technical

Re: variables in select into outfile

2003-08-27 Thread Victoria Reznichenko
Thompson, Jordan [EMAIL PROTECTED] wrote: I wan to use a variable for the outfile file name in a select into clause. I am doing something like: set @fileName=/tmp/result.text SELECT col1, col2 INTO OUTFILE @fileName FIELDS TERMINATED BY ',' FROM test_table; the interpreter dies at the

variables in select into outfile

2003-08-26 Thread Thompson, Jordan
I wan to use a variable for the outfile file name in a select into clause. I am doing something like: set @fileName=/tmp/result.text SELECT col1, col2 INTO OUTFILE @fileName FIELDS TERMINATED BY ',' FROM test_table; the interpreter dies at the @fileName... if I exchange @filename with

Re: select * into outfile;mysql-delphi

2003-06-24 Thread Janice Wright
MySQL won't write data to a file if the file already exists. Make sure you've deleted the old file or given MySQL a new filename to write to. Jan -- Janice Wright Ingenta plc [EMAIL PROTECTED] http://www.ingentaselect.com/ Sometime recently Rahmat Hidayat said: hello my friends.. i have

select * into outfile;mysql-delphi

2003-06-23 Thread Rahmat Hidayat
hello my friends.. i have some problem : 1. when i drop data out into a file, sometimes i have some problem like the file can't be opened(when i save into .xls or .mdb or other) how can i solve this problem? 2. how can i use mysql with delphi?please give me more explanation about it.. and must

Problems Using SELECT INTO OUTFILE

2003-03-05 Thread Nick Pasich
subsequent executions do not. This is because of query caching. If the SELECT Statement is changed to: Select * SQL_NO_CACHE INTO OUTFILE YourFileName FIELDS TERMINATED BY ',' ENCLOSED BY '' From AnyTable

Problems Using SELECT INTO OUTFILE

2003-03-05 Thread Nick Pasich
subsequent executions do not. This is because of query caching. If the SELECT Statement is changed to: Select * SQL_NO_CACHE INTO OUTFILE YourFileName FIELDS TERMINATED BY ',' ENCLOSED BY '' From AnyTable

select into outfile fields fixed (???)

2003-01-17 Thread Eric White
Hello, I've read documentation and looked in the list archives but haven't found anything that specifically addresses the idea of writing out fields in a fixed-field format. I'd like to do something like SELECT id,date INTO OUTFILE 'data.txt' id = column 1, date = column 10; to get a file

SELECT * INTO OUTFILE results with Errcode 28

2002-09-12 Thread Andreas Metzner
Hi All, After a query SELECT * INTO OUTFILE test.csv FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' FROM testtable the following error occurs: Error writing file 'test.csv' (Errcode: 28) The file was written partially indeed, but not including all records matching the query. Help would

SELECT * INTO OUTFILE results with Errcode 28

2002-09-12 Thread Andreas Metzner
Hi All, After a query SELECT * INTO OUTFILE test.csv FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' FROM testtable the following error occurs: Error writing file 'test.csv' (Errcode: 28) The file was written partially indeed, but not including all records matching the query. Help would

Re: SELECT * INTO OUTFILE results with Errcode 28

2002-09-12 Thread Gerald Clark
perror 28 Error code 28: No space left on device Andreas Metzner wrote: Hi All, After a query SELECT * INTO OUTFILE test.csv FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' FROM testtable the following error occurs: Error writing file 'test.csv' (Errcode: 28) The file was written

re: SELECT * INTO OUTFILE results with Errcode 28

2002-09-12 Thread Victoria Reznichenko
Andreas, Thursday, September 12, 2002, 3:56:58 PM, you wrote: AM After a query AM SELECT * INTO OUTFILE test.csv FIELDS TERMINATED BY ',' OPTIONALLY AM ENCLOSED BY '' FROM testtable AM the following error occurs: AM Error writing file 'test.csv' (Errcode: 28) AM The file was written partially

select * into outfile

2002-09-08 Thread edatanew.com
Hello! I have one subroutine in Perl (DBI) that prepares and executes SELECT-like queries and fetches the output from them. When I submit SELECT * INTO OUTFILE query, then $sth-fetchrow_array() generates Error: Error 19 (fetch() without execute()) How to avoid it? How can this subroutine

Re: select * into outfile

2002-09-08 Thread Tom Gao
: select * into outfile Hello! I have one subroutine in Perl (DBI) that prepares and executes SELECT-like queries and fetches the output from them. When I submit SELECT * INTO OUTFILE query, then $sth-fetchrow_array() generates Error: Error 19 (fetch() without execute()) How to avoid it? How

Re: select * into outfile

2002-09-08 Thread edatanew.com
Yes, I can do that, but the subroutine is the same that execute other SELECT-like statements. It does: prepare execute fetch result print Then it must understand when SELECT * INTO OUTFILE must be executed and do not try to fetch data. Is there any criteria that say that there is no data to fetch

Error using 'select...into outfile'

2002-07-30 Thread Lutz Maibach
Hi, I'm trying to do the following: select * into outfile '/tmp/data.txt' fields terminated by';' from customer Although the mysql-user has all privileges (except the grant priv) on the database and the file_priv in the user table I get an 'Access denied for user..' when executing the select

Re: Re[2]: [BUG] Excess Privileges required for SELECT INTO OUTFILE

2002-05-31 Thread Benjamin Pflugmann
Hello. On Fri, May 31, 2002 at 02:08:57AM +0100, [EMAIL PROTECTED] wrote: [...] BP So you may consider upgrading and check if you find the problems BP still reproducable. [...] I generally only update on a needs basis, most notably for security, as I like to keep things stable and

Cannot SELECT TO OUTFILE

2002-05-30 Thread mysql-readers
Hi, I have a user for doing a select-to-outfile, and I've granted both the file privilege and also (just for the table in question) the select privilege to that user. Trying it at the command-line gives me Access denied... which seems like it can't be the case having granted the correct

Cannot SELECT TO OUTFILE

2002-05-30 Thread mysql-readers
Hi, I have a user for doing a select-to-outfile, and I've granted both the file privilege and also (just for the table in question) the select privilege to that user. Trying it at the command-line gives me Access denied... which seems like it can't be the case having granted the correct

Re: Cannot SELECT TO OUTFILE

2002-05-30 Thread Egor Egorov
mysql-readers, Thursday, May 30, 2002, 10:38:14 AM, you wrote: mr I have a user for doing a select-to-outfile, and I've granted both the mr file privilege and also (just for the table in question) the select mr privilege to that user. mr Trying it at the command-line gives me Access denied

Fwd: NDN: Cannot SELECT TO OUTFILE

2002-05-30 Thread mysql-readers
So, why do I keep getting the following? What does it mean? Has my mail been delivered to the mailing list or not? This is a forwarded message From: Mailer-Daemon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Thursday, May 30, 2002, 11:20:03 AM ===8==Original message

Re[2]: Cannot SELECT TO OUTFILE

2002-05-30 Thread mysql-readers
Egor, EE Yeah, Access denied error means that user doesn't have necessary EE permissions. Can you provide some more info? i.e. full error EE message, how did you set up file_priv using GRANT statement or EE updated privilege tables manually? What version MySQL client and EE server do you use? I

Re: Re[2]: Cannot SELECT TO OUTFILE

2002-05-30 Thread Egor Egorov
mysql-readers, Thursday, May 30, 2002, 1:31:50 PM, you wrote: EE Yeah, Access denied error means that user doesn't have necessary EE permissions. Can you provide some more info? i.e. full error EE message, how did you set up file_priv using GRANT statement or EE updated privilege tables

[BUG] Excess Privileges required for SELECT INTO OUTFILE

2002-05-30 Thread mysql-readers
not reliably update in all cases. Not all combinations of GRANT / REVOKE completely without sometimes needing a flush privileges, even in a single (root) session. (b) [MAIN ISSUE] One might expect a statement such as the following type of statement: SELECT fields INTO OUTFILE /tmp/j FROM

Re: [BUG] Excess Privileges required for SELECT INTO OUTFILE

2002-05-30 Thread Benjamin Pflugmann
when they are evaluated again? See http://www.mysql.com/doc/P/r/Privilege_changes.html. (b) [MAIN ISSUE] One might expect a statement such as the following type of statement: SELECT fields INTO OUTFILE /tmp/j FROM tbl; to require the FILE privilege (global) and the SELECT privilege

Re[2]: [BUG] Excess Privileges required for SELECT INTO OUTFILE

2002-05-30 Thread mysql-readers
Benjamin, In response to your mail of Friday, May 31, 2002 1:24:17 AM: BP Hello. Thanks for the feedback. BP 3.23.36 is a bit outdated by now Sure -- actually that's why I was vague about the side-issue (below) and why I checked the changelogs for an explicit fix to my main problem. BP

select * into outfile

2002-04-07 Thread lorenzo.kh
Hi, i am using mysql 4.0.0 version -alpha in windows 2000. i'd like to export the mysql table data to excel format. So,i use the outfile method. mysqlselect * into outfile 'backup.xls' from tablename; When i open 'backup.xls' in microsoft excel,i can view all the data ,but i can't view the field

Column headers using SELECT * INTO OUTFILE...?

2001-11-18 Thread James Robertson - Composite Design
Hello Is there a way to include table column names as headers using 'SELECT * INTO OUTFILE...'? Cheers James A Robertson - Before posting, please check: http://www.mysql.com/manual.php (the manual) http

Re: Column headers using SELECT * INTO OUTFILE...?

2001-11-18 Thread Paul DuBois
On Mon, Nov 19, 2001 at 03:19:41PM +1300, James Robertson - Composite Design wrote: Hello Is there a way to include table column names as headers using 'SELECT * INTO OUTFILE...'? Cheers James A Robertson No. SELECT selects data from the table. The column names are not table data

FW: select into outfile problem

2001-04-10 Thread Niklas Rudemo
into outfile problem On Mon, Apr 09, 2001 at 03:48:43PM +0200, Niklas Rudemo wrote: I'm trying to select into outfile to a file that already exist. This has been discussed before, I know, but the solution suggested results in an SQL-error, as shown below. So what's the real solution? Select your rows

Re: FW: select into outfile problem

2001-04-10 Thread Gerald Clark
To: Niklas Rudemo Cc: [EMAIL PROTECTED] Subject: Re: select into outfile problem On Mon, Apr 09, 2001 at 03:48:43PM +0200, Niklas Rudemo wrote: I'm trying to select into outfile to a file that already exist. This has been discussed before, I know, but the solution suggested results in an SQL

Re: select into outfile problem

2001-04-09 Thread Paul DuBois
On Mon, Apr 09, 2001 at 03:48:43PM +0200, Niklas Rudemo wrote: I'm trying to select into outfile to a file that already exist. This has been discussed before, I know, but the solution suggested results in an SQL-error, as shown below. So what's the real solution? Select your rows