Link to home
Start Free TrialLog in
Avatar of hankknight
hankknightFlag for Canada

asked on

LOAD DATA INFILE from command line

Hello,

I have root access to a remote Linux server running CentOS with MySQL installed.

I want to populate a database from a text file at the command-line prompt.

This does NOT work:

mysql --user=user_user -password=password user_DB; LOAD DATA INFILE 'generated.txt' INTO TABLE myTable FIELDS TERMINATED BY '||';

What am I doing wroing?
ASKER CERTIFIED SOLUTION
Avatar of hbustan
hbustan
Flag of Kuwait image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial