LOAD DATA LOCAL INFILE '/home/eperez/archivo.csv' INTO TABLE accesos FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n';
Se genero el bendito error, buscando en san google encontre la siguiente solucion (https://bugs.mysql.com/bug.php?id=72220):
1) Added few lines in /etc/mysql/my.cnf a) [client] loose-local-infile = 1 // added this b) [mysqld] local-infile = 1 // added this
2) /etc/apparmor.d/usr.sbin.mysqld usr/sbin/mysqld { ... /var/log/mysql/ r, /var/log/mysql/* rw, /var/run/mysqld/mysqld.pid w, /var/run/mysqld/mysqld.sock w, /data/ r, // added this /data/* rw, // added this } 3) sudo /etc/init.d/apparmor reload 4) sudo service mysql restart