I have a text file with one word per line. I haven’t been able to get it to import into mysql table with a field called name.
What options do I need to use for importing?
My text file is like:
random
name
one
two
three
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should use
LOAD DATA INFILEEDIT:
Seems like you cannot specify both columns list (
(name)in this case) andFIELDS/LINESclauses at the same time – really weird.