John,
Thursday, November 28, 2002, 7:02:58 PM, you wrote:

JC>         Thanks very much.

JC>         Following on your suggestions, I then went ahead and put the text file 
JC> into my directory:

JC>         /usr/local/mysql

JC>         so that the file was then /usr/local/mysql/absence.txt

JC>         and, with that done, the

JC>         LOAD DATA LOCAL INFILE "absence.txt" into table absence;

JC>         command in the mysql client successfully did load it.

JC>         (It didn't work when put into the /usr/local/mysql/scripts directory 
JC> or in the /usr/local/mysql/data directory.)

JC>         Is there anyway to change the place where the client looks when given 
JC> the relative pathname of a file to be LOADed, or is one stuck with 
JC> having to put all text files in that one immutable location?

Nope.
And storing text files in /usr/local/mysql is not a good idea ..

If you execute LOAD DATA LOCAL from your own client
application/script, store path to the dir in some configuration
variable and so on.

JC>         (On the Mac, we aren't allowed to see the contents of 
JC> /usr/local/mysql/ in the GUI. We have to access it through the UNIX 
JC> Terminal program, and then fiddle with permissions, which, I am not 
JC> bashful to say, I am reluctant to start doing without comprehending the 
JC> implications, which, I also am not bashful to say, I don't.)



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com





---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to