From 55340233b8efd8db6f5c1d3dec6b2cc7a884cf70 Mon Sep 17 00:00:00 2001 From: Jud <41086167+joudi6@users.noreply.github.com> Date: Fri, 18 Aug 2023 09:48:24 +0200 Subject: [PATCH] Update dumps.md It looked to me like this information was missing. feel free to merge or leave it out. --- databases/sql/dumps.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/databases/sql/dumps.md b/databases/sql/dumps.md index 840d1ab..23ed411 100644 --- a/databases/sql/dumps.md +++ b/databases/sql/dumps.md @@ -1,6 +1,6 @@ # What is a database dump? -A database `dump` (aka SQL dump) contains a record of the table structure and the data from a database and is usually in the form of a list of SQL statements. ([An example file named world.sql](https://github.com/HackYourFuture/databases/blob/master/Week1/world.sql) is present in the `Week1` folder) +A database `dump` (aka SQL dump) contains a record of the table structure and the data from a database which is used as a backup to restore the database in case of losing it. A database dump is usually in the form of a list of SQL statements. ([An example file named world.sql](https://github.com/HackYourFuture/databases/blob/master/Week1/world.sql) is present in the `Week1` folder) 1. Collecting the dump of an existing database from terminal `mysqldump -uroot -p database_name > dump-file.sql` 2. Applying the dump from mysql command prompt (`mysql>`) `source /path/to/the/dump/file`