Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux_wiki:backup_and_restore_a_database [2016/09/11 14:51] billdozor created |
linux_wiki:backup_and_restore_a_database [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 4: | Line 4: | ||
Backing up and restoring a database. | Backing up and restoring a database. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Lab Setup ====== | ||
+ | |||
+ | The following virtual machines will be used: | ||
+ | * server2.example.com (192.168.1.151) -> Database here | ||
+ | |||
+ | **Previous Sections Completed** | ||
+ | * [[linux_wiki: | ||
+ | * [[linux_wiki: | ||
+ | * [[linux_wiki: | ||
---- | ---- | ||
Line 9: | Line 21: | ||
====== Backup ====== | ====== Backup ====== | ||
+ | **Documentation** | ||
+ | <code bash> | ||
+ | man mysqldump | ||
+ | </ | ||
+ | |||
+ | \\ | ||
Backup 1 specific database: Run the MySQL Dump utility to backup tables within a database | Backup 1 specific database: Run the MySQL Dump utility to backup tables within a database | ||
<code bash> | <code bash> | ||
Line 32: | Line 50: | ||
====== Restore ====== | ====== Restore ====== | ||
+ | Restore 1 specific database' | ||
+ | <code bash> | ||
+ | mysql -u root -p | ||
+ | MariaDB [(none)]> | ||
+ | MariaDB [(none)]> | ||
+ | mysql -u root -p emails < / | ||
+ | </ | ||
---- | ---- | ||