Gone through the below link also but i am unable to import CSV file in mysql. Even i had tried by using > LOAD DATA LOCAL INFILE but same error persisting. Please help me in this. queries i tried had appended below
MySQL import csv only gets half the lines
mysql> LOAD DATA INFILE 'home/karthick.g.s/Desktop/karthick.csv' -> INTO TABLE test_1 -> FIELDS TERMINATED BY ',' -> ENCLOSED BY '^' -> LINES TERMINATED BY '\r\n'; ERROR 13 (HY000): Can't get stat of '/var/lib/mysql/home/karthick.g.s/Desktop/karthick.csv' (Errcode: 2) mysql> LOAD DATA LOCAL INFILE 'home/karthick.g.s/Desktop/karthick.csv' -> INTO TABLE test_1 -> FIELDS TERMINATED BY ',' -> ENCLOSED BY '^' -> LINES TERMINATED BY '\r\n'; ERROR 1148 (42000): The used command is not allowed with this MySQL version I am using the version 5.5.37-0ubuntu0.12.04.1