Mailinglisten-Archive |
Alexander Gessner wrote:
> Hallo Liste
>
> Ich habe einen Export mit mysqldump mit folgender Option erstellt:
> mysqldump --opt -h localhost -u xxxxxx -pxxxxx datenbank1 >
> /backup/dump.sql.gz
>
> Dies hat auch ohne weiteres funktioniert,
> jetzt wollte ich das dumpf.sql.gz wieder Importieren:
> mysql -h localhost -u root -pxxxxxx datenbank1 | /backup/dump.sql.gz
>
> Dann kommt die Fehlermeldung
> /backup/dump.sql: DROP: command not found
> /backup/dump.sql: line 12: syntax error near unexpected token `('
> /backup/dump.sql: line 12: `CREATE TABLE artikel_stamm ('
Wieso | ich dacht das geht mit
mysql -h localhost -u root -pxxxxxx datenbank1 < /backup/dump.sql.gz
wenn das teil gepackt ist gegebenen Falls entpacken.
---
Infos zur Mailingliste, zur Teilnahme und zum An- und Abmelden unter
-->> http://www.4t2.com/mysql
php::bar PHP Wiki - Listenarchive