[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] cargar archivo txt a MySQL por bash



user name escribió:
Que tal, necesito hacer un script en bash que cargue un archivo .txt a una db mysql, he puesto esta línea: mysqlimport --user=panchito --fields-terminated-by=, prueba /home/panchito/pruebas/prueba.txt pero con esto me dice que no se ha seleccionado ninguna base de datos,

y si la seleccionas antes ?

USE base_de_datos

como puedo hacerlo?
gracias :D

Walter
     .-----.
    / \ _ / \   __
 (\/  /  \   |_/OO)
  \--------------~
  // ||   || \\
http://www.swcomputacion.com/



Reply to: