I am using MySql 5.5.53-0ubuntu0.14.04.1, and Julia Version 0.5.0
In my julia script, I am using
conn = MySQL.mysql_connect(host, username, password, database)
command = string("LOAD DATA LOCAL INFILE 'infile' INTO TABLE temp_table FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"';")
MySQL.mysql_execute(conn, command)
I got the error message “The used command is not allowed with this MySQL version”
The command does work when I was running it directly on the MySQL console, so I am assuming it is an issue with Julia MySQL.mysql_connect
.
Looks like there is a similar problem with Python, and the following syntax solves the problem. MySQL LOAD DATA LOCAL INFILE Python
MySQLdb.connect(server, username, password, database, local_infile = 1)
I wonder how should I do this with Julia?