MySQL - [solucionado] ERROR 1148 (42000): The used command is not allowed with this MySQL version

 
Vista:
Imágen de perfil de xve
Val: 796
Oro
Ha mantenido su posición en MySQL (en relación al último mes)
Gráfica de MySQL

[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

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
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

[solucionado] ERROR 1148 (42000): The used command is not allowed with this MySQL version

Publicado por Adrian Arteaga (1 intervención) el 01/02/2018 03:23:41
Buenas noches. Listo, la recomendacion indicada funcionó.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar