Mysql Datenbank sichern

Aus Wiki.csoft.at

Datenbank sichern

 mysqldump -h localhost -uroot -ppassword db_name | gzip > db_name.sql.gz

Datenbank wiederherstellen

mysql -h localhost -u root -ppassword db_name < db_name.sql