Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- thufir@dur:/tmp$
- thufir@dur:/tmp$ ll make_year_model.csv
- -rw-rw-r-- 1 thufir thufir 95 Jun 24 07:56 make_year_model.csv
- thufir@dur:/tmp$
- thufir@dur:/tmp$ cat make_year_model.csv
- make1,model1,2012,604,buy now
- make2,model2,2013,780,need to sell
- make3,model3,2001,780,cheap
- thufir@dur:/tmp$
- thufir@dur:/tmp$ mysql -u root -p
- Enter password:
- Welcome to the MySQL monitor. Commands end with ; or \g.
- Your MySQL connection id is 50
- Server version: 5.5.37-0ubuntu0.14.04.1 (Ubuntu)
- Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
- Oracle is a registered trademark of Oracle Corporation and/or its
- affiliates. Other names may be trademarks of their respective
- owners.
- Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
- mysql>
- mysql> LOAD DATA LOCAL INFILE '/tmp/make_year_model.csv' INTO TABLE vehicles.vehicles FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';
- ERROR 1148 (42000): The used command is not allowed with this MySQL version
- mysql>
- mysql> LOAD DATA INFILE '/tmp/make_year_model.csv' INTO TABLE vehicles.vehicles FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';
- ERROR 29 (HY000): File '/tmp/make_year_model.csv' not found (Errcode: 13)
- mysql>
- mysql> quit
- Bye
- thufir@dur:/tmp$
Advertisement
Add Comment
Please, Sign In to add comment