This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
database:mysql [2019/04/02 17:53] – [Backup] tmade | database:mysql [2019/06/06 14:41] (current) – [Restore] tmade | ||
---|---|---|---|
Line 14: | Line 14: | ||
==== Backup ==== | ==== Backup ==== | ||
- | Example backupscript to backup each database as a singe file: | + | Example backupscript to backup each database as a single |
< | < | ||
#!/bin/bash | #!/bin/bash | ||
Line 101: | Line 101: | ||
==== Restore ==== | ==== Restore ==== | ||
- | Ceate a file with following content and make it executable (chmod +x import_db.sh) | + | Create |
< | < | ||
Line 385: | Line 385: | ||
CHANGE MASTER TO MASTER_HOST=" | CHANGE MASTER TO MASTER_HOST=" | ||
- | as master and creadentials isn´t | + | as master and credentials aren´t |
+ | |||
+ | See also on: | ||
+ | |||
+ | https:// | ||
Activate/ deactivate " | Activate/ deactivate " |