tobyheywood
IS-IT--Management
Hi,
I'm currently learning the basics of MySQL and have come across a small show stopper!
I need to import data from a delimited text file, but when I type in the following it tells me it can't be done, and I'm making an assumption (always a bad idea) that this is related to the --local-infile=1 flag.
When I used the
command this initially didn't work, and I soon found that I had to load mysql with the flag
, after this load data local infile worked fine.
I thought this maybe the same for mysqlimport, but unfortunately it's not.
Can anyone suggest a way in which I can get mysqlimport to function properly?
Thank you in advance! Toby Heywood
I'm currently learning the basics of MySQL and have come across a small show stopper!
I need to import data from a delimited text file, but when I type in the following it tells me it can't be done, and I'm making an assumption (always a bad idea) that this is related to the --local-infile=1 flag.
Code:
mysqlimport -L -h localhost -u user -pthepassword '/home/userdir/address.txt' --fields-terminated-by=::: --fields-enclosed-by="
When I used the
Code:
LOAD DATA LOCAL INFILE
Code:
--local-infile=1
I thought this maybe the same for mysqlimport, but unfortunately it's not.
Can anyone suggest a way in which I can get mysqlimport to function properly?
Thank you in advance! Toby Heywood