[Linux-Biella] R: DUMP SQL
Marco Barbera
barbera a bilug.linux.it
Gio 5 Giu 2008 15:04:38 CEST
Non gli piace la sintassi :
for table in `mysql $db -e ’show tables’ | egrep -v ‘Tables_in_’ `; do
Restituisce l'errore di mysql:
mysql Ver 14.12 Distrib 5.0.38, for pc-linux-gnu (i486) using readline 5.2
Copyright (C) 2002 MySQL AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Usage: mysql [OPTIONS] [database]
-?, --help Display this help and exit.
-I, --help Synonym for -?
--auto-rehash Enable automatic rehashing. One doesn't need to use
'rehash' to get table and field completion, but
startup
and reconnecting may take a longer time. Disable with
--disable-auto-rehash.
....eccc eccc vi risparmio il seguito...
Il problema è che finendo in un ciclo for mi crea un casino di file...
Uno dei molti modi alternativi magari più semplici :) ?
Con mysqldump non ho trovato una sintassi, a meno che mi sia sfuggita, di
dirgli di creare un dump per tutte le tabelle del DB... :(
Tks
Marco
-----Messaggio originale-----
Da: linux-bounces a ml.bilug.linux.it [mailto:linux-bounces a ml.bilug.linux.it]
Per conto di Cristiano Deana
Inviato: giovedì 5 giugno 2008 14.55
A: Mailing List del Biella Linux User group
Oggetto: Re: [Linux-Biella] DUMP SQL
Marco Barbera wrote:
> Esiste un modo per evitare di scrivermi a mano tutti i nomi delle
tabelle?
molti
> Ho trovato uno script su internet ma non riesco a farlo funzionare :(.
dovresti dire *dove* restituisce un errore
a *me* quello script funzionerebbe (anche se *aborro* l'uso di bash
quando si puo' usare sh).
--
Cristiano Deana - FreeCRIS
"Ho iniziato a usare FreeBSD perche' m$ usava me. ed e' spiacevole"
_______________________________________________
Linux mailing list
Linux a ml.bilug.linux.it
http://ml.bilug.linux.it/mailman/listinfo/linux
Maggiori informazioni sulla lista
Linux