Re: [OT] cargar archivo txt a MySQL por bash
On 3/23/07, Gonzalo Rivero <fishfromsalta@gmail.com> wrote:
El 23/03/07, user name <someusernamehere@gmail.com> 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 to your MySQL server version for the right
> syntax to use near 'carnedepuerco,kilo,7.89,8.90,-1.01,-21.25,-12.80' at
> line 1
me refería a mysqlimport. La sintaxis con que lo estás usando al
mysqlimport está bien. Lo únicos problemas que se me ocurren son:
1) no creaste la base
2) no creaste la tabla
Pero en donde le indico en qué tabla debe meterse?
Reply to: