Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Restore database
Message
De
15/02/2018 05:20:21
 
 
À
15/02/2018 05:12:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01658123
Message ID:
01658126
Vues:
34
tried it already
gunzip -f  < allbackup.sql.gz  | mysql.exe -umyuser -pmypassw  store1
the issue is not with gunzip, but with mysql.exe

if I run
gunzip -f  < allbackup.sql.gz 
it works

how to force overwrite in mysql.exe?





>>I'm using VFP9 with MySQL database.
>>
>>I want to restore MySQL database, if I'm using command:
>>
>>mysql.exe -umyuser -pmypassw  store1 < allbackup.sql
>>
>>it works fine
>>
>>but if I'm using gunzip
>>
>>gunzip  < allbackup.sql.gz  | mysql.exe -umyuser -pmypassw  store1
>>
>>I get error message: table mytable1 already exist.
>>
>>how can I force overwrite the database if using gunzip?
>>
>>Thanks in advance
>
>
>https://forums.fedoraforum.org/showthread.php?176619-overwrite-gzip-file-without-confirmation
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform