[solucionado] ERROR 1148 (42000): The used command is not allowed with this MySQL version
Publicado por xve (1151 intervenciones) el 17/06/2015 13:10:50
Al intentar cargar un archivo CSV en una base de datos del tipo:
LOAD DATA LOCAL INFILE 'x.CSV' INTO TABLE `ip2location_db11` FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n' IGNORE 0 LINES;
Me daba el error:
ERROR 1148 (42000): The used command is not allowed with this MySQL version
Después de buscar por Internet, la solución ha sido iniciar el MySQL con el parámetro --local-infile=1
De esta manera, ya he podido exportar la base de datos sin problema.
Espero que os sirva de ayuda
LOAD DATA LOCAL INFILE 'x.CSV' INTO TABLE `ip2location_db11` FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n' IGNORE 0 LINES;
Me daba el error:
ERROR 1148 (42000): The used command is not allowed with this MySQL version
Después de buscar por Internet, la solución ha sido iniciar el MySQL con el parámetro --local-infile=1
1
mysql --local-infile=1 -u root -p
De esta manera, ya he podido exportar la base de datos sin problema.
Espero que os sirva de ayuda
Valora esta pregunta


0