Author Topic: problem with using "load data local infile" in MyS  (Read 1540 times)

0 Members and 1 Guest are viewing this topic.

Offline stchongTopic starter

  • Irregular
  • Posts: 4
    • View Profile
problem with using "load data local infile" in MyS
« on: May 17, 2003, 08:29:39 AM »
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                    

Offline rledieu

  • Irregular
  • Posts: 4
    • View Profile
    • http://www.besthq.com
problem with using "load data local infile" in MyS
« Reply #1 on: May 17, 2003, 01:06:30 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:

Code: [Select]
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
Code: [Select]
load data local infile ... ?                    

Offline shivabharat

  • Addict
  • Posts: 2,404
    • View Profile
problem with using "load data local infile" in MyS
« Reply #2 on: May 19, 2003, 07:21:39 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.Note: Before you request help enusre that you have had a look at the tutorials @phpfreaks