Jump to content


Photo

problem with using "load data local infile" in MyS


  • Please log in to reply
2 replies to this topic

#1 stchong

stchong
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 17 May 2003 - 12:29 PM

my mysql is 4.0.12.
I am using mysqld-max-nt...
I have check for information in mysql\'s web site,but still can not solve the problem! still can not use load data local infile...
every time it shows me the same error message:
ERROR 1148: The used command is not allowed with this MySQL version

I have tried two ways
1. in the command line of mysql
mysql --local-infile=1 -u root -p
I also tried.....
mysql --local-infile=0 -u root -p
but all can not

2. modify the my.ini
set-variable=local-infile=1
I also tried
set-variable=local-infile=0
but all still can not

so what\'t the problem????
Help me, please...
Tahnks a lot

#2 rledieu

rledieu
  • New Members
  • Pip
  • Newbie
  • 4 posts
  • LocationUK & USA

Posted 17 May 2003 - 05:06 PM

I have found that you need to include information about the delimiters if you are working in a Windows environment. I use TABs to delinieate fields and then I use the following command:

load data infile \'d:/test.txt\' 

into table test 

fields terminated by \'t\'

lines terminated by \'rn\';

Notice the need to specify the Carriage Return, New Line combination. Without it this doesn\'twork.

Alternatively have you tried
load data local infile ...
?

#3 shivabharat

shivabharat
  • Members
  • PipPipPip
  • Advanced Member
  • 371 posts
  • LocationChennai, India

Posted 19 May 2003 - 11:21 AM

If u have trouble using the command

u can try this tool found @

sqlyog

www.sqlyog.com

Its a nice GUI tool for windows!!
Knowledge --- Reading Enriches Mind But Sharing Enhances It.[br][br]Note: Before you request help enusre that you have had a look at the tutorials @phpfreaks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users