R programming language
This is my query:
LOAD DATA LOCAL INFILE '/home/ap_506/KF/export_2015-07-20.csv'
INTO TABLE test.raporty
FIELDS TERMINATED BY ';'
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES;
I put local-infile=1
in file: /etc/mysql/my.cnf
:
[mysql]
local-infile=1
[mysqld]
local-infile=1
and it still returns error:
Error Code: 1148. The used command is not allowed with this MySQL version
Version:
SELECT VERSION()
returns: '5.5.40-0ubuntu0.12.04.1'
It works and I can upload this via terminal using:
mysql -h <server> -u <user> -p --local-infile <database>
and I can upload this from WINDOWS too
but that's not a soultion, beacause I need to use ubuntu and upload data from R. Can you help me?