Wie kan ich beim exportieren / backup mysql datenbanken die prozeduren mit exportieren? Ich bekomme nur die drops in den scripts, die create procedures sind nicht sichtbar. Auch wenn ich sie in phpmyadmin anschauen moechte, sind sie nicht sichtbar.
Ankündigung
Einklappen
Keine Ankündigung bisher.
Exportieren + Ansicht stired procedures
Einklappen
X
-
MySQL 5 has introduced some new interesting features, like stored procedures and triggers. I will show in this small post how we can backup and restore these components using mysqldump. mysqldump will backup by default all the triggers but NOT the stored procedures/functions. There are 2 mysqldump parameters that control this behavior: --routines - FALSE by default --triggers - TRUE by default This means that if you want to include in an existing backup script also the triggers and stored procedures you only need to add the --routines command line parameter:
Man sieht sich auf https://wewoco.de
-
Zitat von [email protected] Beitrag anzeigenVielleicht sollte ich erwaehnen das es eine sql datenbank betrifft auf ein managed host, und ich daher angewiesen bin auf die phpmyadmin site die df zur verfuegung stellt. sql dump ist also keine alternative....
Gruß
JanTwo hours of trial and error can save ten minutes of manual reading.
Kommentar
-
Zitat von [email protected] Beitrag anzeigenVielleicht sollte ich erwaehnen das es eine sql datenbank betrifft auf ein managed host, und ich daher angewiesen bin auf die phpmyadmin site die df zur verfuegung stellt. sql dump ist also keine alternative....
Du kannst den Befehl aber in eine PHP Datei packen und mit exec() ausführen.
SSH brauchst du dann nicht.
Man sieht sich auf https://wewoco.de
Kommentar
Kommentar