Rev 22 | Rev 38 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log
mysqldump -u root -p pw_active > ./active.sqlmysqldump -u root -p --all-databases > /backup/mariadb.dump-–add-drop-table Tells MariaDB to add a DROP TABLE statement before each CREATE TABLE statement.-–no-data Dumps only the database structure, not the contents.-–lock-all-tables No new record can be inserted anywhere in the database while the copy is finished. This option is very important to ensure backup integrity.-–add-drop- database Tells MariaDB to add a DROP DATABASE statement before each CREATE DATABASE statement.Debian: pw = Margr!et@70mysqldump -u marcel --add-drop-table -p pw_active > ./active.sqlWindows: pw = Nitrox32mysqldump -u root --add-drop-table -p pw_active > ./active.sqlmysql -u root -p inventory < /backup/mariadb.dumpmysql -u marcel -p pw_active < ./active.sql