Content added Content deleted
imported>Hundfred No edit summary |
imported>Hundfred No edit summary |
||
Line 28: | Line 28: | ||
in the version 6 of mysql there will be an extra-tool for backup. |
in the version 6 of mysql there will be an extra-tool for backup. |
||
tool: |
|||
there is also a perl tool to do a mysql-backup |
there is also a perl tool to do a mysql-backup |
||
[[http://www.mswanson.com/?f=software/mybackup/index.html]] |
[[http://www.mswanson.com/?f=software/mybackup/index.html]] |
||
here some screenshots, how to do a backup with mysql-administrator |
|||
[[http://s23.org/wiki/Image:Backup_with_mysqladmin.PNG]] |
Revision as of 08:18, 23 June 2009
mysql-backup
using mysqldump with the command lock-tables doesn't lead to a consistent backup with innodb databases, and just works fine with myissam databases.
this command you can use to get a consistent backup
C:\DOKUME~1\Admin> mysqldump -u root -p --skip-opt --single-transaction --add-drop-table --create-option --quick --extended-insert --set-charset --disable-keys --database <DATABASE-NAME> > backup.sql Enter password: ****** C:\DOKUME~1\Admin>
with this stored-procedures are not included in that backup this can happen with this command
C:\DOKUME~1\Admin>mysqldump -u root -p mysql proc > backup_all_stored_procedures.sql Enter password: ****** C:\DOKUME~1\Admin>
this will backup ALL stored procedures if you want just to backup stored procedures for a single database, then you can try this one here:
mysqldump -u root -p --where='db=testdbsm' --no-create-info mysql proc > backup_stored_procedure_of_this_db.sql
in the version 6 of mysql there will be an extra-tool for backup.
there is also a perl tool to do a mysql-backup [[1]]
here some screenshots, how to do a backup with mysql-administrator
[[2]]