Skip to content

Commit

Permalink
Update dumps.md
Browse files Browse the repository at this point in the history
It looked to me like this information was missing. feel free to merge or leave it out.
  • Loading branch information
joudi6 authored Aug 18, 2023
1 parent bcc3177 commit 5534023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databases/sql/dumps.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down

0 comments on commit 5534023

Please sign in to comment.