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

2007-03-23 Por tema user name
On 3/22/07, Gonzalo Rivero [EMAIL PROTECTED] wrote: El 21/03/07, user name [EMAIL PROTECTED] 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

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

2007-03-23 Por tema Gonzalo Rivero
El 23/03/07, user name [EMAIL PROTECTED] escribió: On 3/22/07, Gonzalo Rivero [EMAIL PROTECTED] wrote: El 21/03/07, user name [EMAIL PROTECTED] 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

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

2007-03-23 Por tema user name
debería funcionarte así de hecho estuve importando así sin problemas hasta hace dos días no funciona, mira: # mysql -uroot prueba.txt ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to

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

2007-03-23 Por tema Gonzalo Rivero
El 23/03/07, user name [EMAIL PROTECTED] escribió: debería funcionarte así de hecho estuve importando así sin problemas hasta hace dos días no funciona, mira: # mysql -uroot prueba.txt ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds

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

2007-03-23 Por tema user name
On 3/23/07, Gonzalo Rivero [EMAIL PROTECTED] wrote: El 23/03/07, user name [EMAIL PROTECTED] escribió: debería funcionarte así de hecho estuve importando así sin problemas hasta hace dos días no funciona, mira: # mysql -uroot prueba.txt ERROR 1064 (42000) at line 1: You have an

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

2007-03-23 Por tema Gonzalo Rivero
El 23/03/07, user name [EMAIL PROTECTED] escribió: On 3/23/07, Gonzalo Rivero [EMAIL PROTECTED] wrote: El 23/03/07, user name [EMAIL PROTECTED] escribió: debería funcionarte así de hecho estuve importando así sin problemas hasta hace dos días no funciona, mira: # mysql

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

2007-03-23 Por tema user name
On 3/23/07, Gonzalo Rivero [EMAIL PROTECTED] wrote: el nombre del archivo (en este caso: prueba.txt) debe ser el nombre de la tabla. Así que, si ya tenés una tabla prueba, tendría que funcionar ahhh orales, eso era lo que no sabía, que debía llamarse igual que la tabla :D muchas gracias!!!

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

2007-03-23 Por tema Gonzalo Rivero
El 23/03/07, user name [EMAIL PROTECTED] escribió: On 3/23/07, Gonzalo Rivero [EMAIL PROTECTED] wrote: el nombre del archivo (en este caso: prueba.txt) debe ser el nombre de la tabla. Así que, si ya tenés una tabla prueba, tendría que funcionar ahhh orales, eso era lo que no sabía, que

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

2007-03-23 Por tema user name
On 3/23/07, Gonzalo Rivero [EMAIL PROTECTED] wrote: yo ya había dicho eso: hahhaha, tenés razón, disculpa hacerte trabajar doble, muchas gracias de nuevo.

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

2007-03-23 Por tema Santiago José López Borrazás
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 El 23/03/07 19:49, user name escribió: # mysql -uroot prueba.txt ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near

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

2007-03-23 Por tema Gonzalo Rivero
El 23/03/07, Santiago José López Borrazás [EMAIL PROTECTED] escribió: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 El 23/03/07 19:49, user name escribió: # mysql -uroot prueba.txt ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to

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

2007-03-23 Por tema Santiago José López Borrazás
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 El 23/03/07 23:07, Gonzalo Rivero escribió: pero para que funcione eso, el txt tendría que tener algo como: USE prueba INSERT INTO prueba VALUES ('carnedepuerco,kilo,7.89,8.90,-1.01,-21.25,-12.80'); Claro. Pero eso depende del cómo se le

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

2007-03-22 Por tema VictorSanchez2
El mié, 21-03-2007 a las 19:38 -0600, 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

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

2007-03-22 Por tema Gonzalo Rivero
El 21/03/07, user name [EMAIL PROTECTED] 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

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

2007-03-22 Por tema Walter
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,

[OT] cargar archivo txt a MySQL por bash

2007-03-21 Por tema user name
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, como puedo hacerlo?

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

2007-03-21 Por tema ChEnChO
El 22/03/07, user name [EMAIL PROTECTED] 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