Basic usage

suggest change

Given the tab-separated file employee.txt

1	Arthur Dent
2	Marvin
3	Zaphod Beeblebrox

Fields are separated by a tab. mysqlimport takes the table name from the file name (employee).

$ mysql --user=user --password=password mycompany -e 'CREATE TABLE employee(id INT, name VARCHAR(100), PRIMARY KEY (id))'

$ mysqlimport --user=user --password=password mycompany employee.txt

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents