php.de

Zurück   php.de > Webentwicklung > Datenbanken

Datenbanken SQL und Co

Antwort
 
LinkBack Themen-Optionen Thema bewerten
Alt 26.04.2006, 12:37  
Benutzer
 
Registriert seit: 08.02.2006
Beiträge: 37
sponer
Standard mysqldump ohne exec

Hi.

Gibt es in der SQL-Syntax eine Abfrage, welche Eine SQL-Tabelle oder Datenbank als Ausgabe zur weiterverabreitung zurückgibt?

Ich möchte Backups mit sog. cronjob-php-aufrufen realisieren und habe dabei nicht die exec-funktion zur Verfügung (eigentlich doch, aber nur max 7 Sekunden Ausführzeit, dass reicht leider nicht).

Gruß

-Nachtrag-

Wie realisiert es eigentlich der PHPMyAdmin?
Nutzt der auch nur exec oder eine andere Methode?
sponer ist offline   Mit Zitat antworten
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 26.04.2006, 13:31  
Erfahrener Benutzer
 
Registriert seit: 23.08.2007
Beiträge: 1.510
M3g4Star befindet sich auf einem aufstrebenden Ast
Standard

?!?! Was wilst du machen ???

du willst 'n php script ablaufen lassen um nen dump zu erstellen ?! richtig ???

warum mit exec und nicht mit den von php vorgegebenen mysql funktionen ?!?!

http://de.php.net/manual/de/ref.mysql.php
M3g4Star ist offline   Mit Zitat antworten
Alt 26.04.2006, 13:53  
Erfahrener Benutzer
 
Benutzerbild von dsmcg
 
Registriert seit: 11.10.2005
Beiträge: 2.405
dsmcg sorgt für eine eindrucksvolle Atmosphäredsmcg sorgt für eine eindrucksvolle Atmosphäredsmcg sorgt für eine eindrucksvolle Atmosphäre
Standard Re: mysqldump ohne exec

Zitat:
Zitat von sponer
Wie realisiert es eigentlich der PHPMyAdmin?
Nutzt der auch nur exec oder eine andere Methode?
PHPMyAdmin ist OpenSource schau dir den Quellcode an.

Ich würde auch MySQL Funktionen empfehlen.
__________________
Wie man Fragen richtig stellt
dsmcg ist offline   Mit Zitat antworten
Alt 26.04.2006, 13:55  
Erfahrener Benutzer
 
Registriert seit: 18.11.2005
Beiträge: 126
Clint
Standard

Es gibt die Befehle BACKUP- RESTORE TABLE aber soweit ich weis gehen Die nur bei Myisam tabellen
Clint ist offline   Mit Zitat antworten
Alt 26.04.2006, 15:04  
Gast
 
Beiträge: n/a
Standard

http://dev.mysql.com/doc/refman/4.1/...kup-table.html
Zitat:
13.5.2.2. BACKUP TABLE Syntax
[...]
Note: This statement is deprecated. We are working on a better replacement for it that will provide online backup capabilities.

http://dev.mysql.com/doc/refman/4.1/en/select.html
Zitat:
The SELECT ... INTO OUTFILE 'file_name' form of SELECT writes the selected rows to a file. The file is created on the server host, so you must have the FILE privilege to use this syntax. file_name cannot be an existing file, which among other things prevents files such as /etc/passwd and database tables from being destroyed.

The SELECT ... INTO OUTFILE statement is intended primarily to let you very quickly dump a table to a text file on the server machine. If you want to create the resulting file on some client host other than the server host, you cannot use SELECT ... INTO OUTFILE. In that case, you should instead use a command such as mysql -e "SELECT ..." > file_name to generate the file on the client host.

SELECT ... INTO OUTFILE is the complement of LOAD DATA INFILE; the syntax for the export_options part of the statement consists of the same FIELDS and LINES clauses that are used with the LOAD DATA INFILE statement. See Section 13.2.5, “LOAD DATA INFILE Syntax”.
Das ist im Grunde nicht wirklich viel besser als BACKUP/RESTORE, aber es ist wenigstens nicht mit "deprecated" gebranntmarkt.
  Mit Zitat antworten
Alt 27.07.2006, 15:22  
Erfahrener Benutzer
 
Registriert seit: 28.04.2003
Beiträge: 140
Klaus
Standard

es gibt da ein nettes kleines Tool, damit kann man sich einen DUNP erstellen und sogar per E-Mail zuschicken oder FTP speichern lassen.

Ok, ich bin mir nicht sicher, ob das weiter hilft.

http://www.phpMyBackupPro.net

Einfach mal anschauen

Gruß

Klaus
Klaus ist offline   Mit Zitat antworten
Antwort


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Exec() im IIS funktioniert nicht Superfunk2000 PHP Tipps 2008 24 04.07.2008 15:12
exec; seite bleibt hängen...auch mit umleitung Crypi PHP Tipps 2006 7 20.12.2006 21:14
exec kommando liefert keinen rückgabewert? sputnik83 PHP-Fortgeschrittene 3 06.04.2006 15:21
mysqldump bricht nach exakt 1 MB ab Datenbanken 2 19.02.2006 15:55
Word mit exec oder system starten (apple tiger) PHP Tipps 2007 0 26.12.2005 13:41
[Erledigt] Fehler bei mysqldump Datenbanken 6 20.10.2005 11:19
[Erledigt] webmin + mysqldump cronjob Datenbanken 0 18.10.2005 10:46
[Erledigt] exec() Funktion PHP-Fortgeschrittene 1 22.08.2005 19:33
[Erledigt] exec() Funktion wird nicht mehr ausgeführt PHP-Fortgeschrittene 3 19.08.2005 11:25
[Erledigt] function exec() und programm 'kill.exe' PHP-Fortgeschrittene 8 26.07.2005 11:04
unzip per exec() funktioniert leider nicht PHP-Fortgeschrittene 7 27.06.2005 15:33
exec() und linuxkonsole (xterm) PHP Tipps 2004-2 0 09.12.2004 13:04
[Erledigt] mysqldump und phpmyadmin Datenbanken 4 07.11.2004 15:57
MySQLDUMP mit exec unter Windows (localhost) PHP Tipps 2004 17 13.10.2004 20:46
Ausführen von mysqldump über system oder exec PHP-Fortgeschrittene 2 24.08.2004 10:39

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
mysqldump rückgabewert, mysqldump ohne exec, http://www.php.de/datenbanken/39451-mysqldump-ohne-exec.html, mysql exec, mysqldumper cronjob, webmin mysql restore, mysqldump syntax, php mysql backup ohne mysqldump, php exec mysqldump, mysqldump cronjob, mysqldump rückgabewerte, mysqldump aus abfrage, mysql dump cron, mysqldump abfrage, rückgabewert mysqldump, mysql abfrage dump, php mysql dump load data infile, mysqldump mit php, php exec mysql -p ohne abfrage, mysqldump without exec

Alle Zeitangaben in WEZ +1. Es ist jetzt 03:49 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.