Einzelnen Beitrag anzeigen
  #1  
Alt 23.05.2008, 11:43:07
audrey audrey ist offline
Anfänger
 
Registriert seit: May 2008
Beiträge: 6
***.sql script ansprechen

Guten Tag liebe Forumnutzer,

ich hab trotz eifriger Suche keine Lösung für mein Problem gefunden.

Ich versuche über ein shellscript eine MYSQL db anzusprechen, dort angekommen soll eine sql script ausgeführt werden, die zeile sieht so aus:

Code:
mysql  -u dbo**** -p****** db***** db*******.de:3306 < sql_new.sql
Die db wird auch geöffnet jedoch eine Ausführung des scripts findet nicht statt, stattdessen kommt:

Code:
Führe MySQL-Importskript aus...
mysql  Ver 14.12 Distrib 5.0.32, 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.
  -A, --no-auto-rehash
                      No automatic rehashing. One has to use 'rehash' to get
                      table and field completion. This gives a quicker start of
                      mysql and disables rehashing on reconnect. WARNING:
                      options deprecated; use --d

Habe auch schon alle möglichen Varianten ausprobiert, die alle eigentlich genau das gleiche Ergebnis zeitigen.

Wenn mir da jemand weiterhelfen könnte? das wäre echt nett, danke.

Grüsslis Audrey
Mit Zitat antworten