4 messages in com.mysql.lists.mysqlRe: Feature Requests
FromSent OnAttachments
Quentin Bennett11 Dec 2001 13:08 
Mike Wexler11 Dec 2001 13:38 
Jason Hall11 Dec 2001 20:58 
Sinisa Milivojevic12 Dec 2001 04:18 
Subject:Re: Feature Requests
From:Jason Hall (jas@infogenix.com)
Date:12/11/2001 08:58:47 PM
List:com.mysql.lists.mysql

I'll add my voice especially on the local file. many times I have wanted to be able to skip creating the file on the server, then having to scp it to my local box.

On Tuesday 11 December 2001 02:09 pm, you wrote:

Hi,

I would like to request the addition of the following features to the command line client:

Shell escape

mysql> !rm /tmp/data.txt mysql> select col into outfile '/tmp/data.txt' from table;

The command is run on the client. It would all SQL scripts to be run more simply that constructing a shell script with the same function. Maybe there would need to be an extra user permission to avoid abuse (like FILE)?

Because the command is run on the client, this leads to the second feature request:

mysql> select col into local outfile '/tmp/data.txt' from table

Before submitting to the server, the client checks, with the server, that the user has FILE privileges, and that the user has OS level permission to create the file.

The results of the query are then put in to the file in the same format as they would have been in the existing select .. into outfile command - if that is too difficult, because the client then needs all the separator and terminator options, then simply tab separated using the platform's standard end of line would be fine for me!

Would these options prove useful to others?

Regards

Quentin Bennett Transport Systems Division Infinity Solutions web http:\\www.infinity.co.nz mailto:quen@infinity.co.nz Phone : +64 9 358 9720 Fax : +64 9 309 4142

To request this thread, e-mail <mysq@lists.mysql.com> To unsubscribe, e-mail <mysql-unsubscribe-jason=info@lists.mysql.com> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php