From cd09e28e795e638cbc054939254810f5efd3867c Mon Sep 17 00:00:00 2001 From: benjamyn Date: Wed, 20 Mar 2019 15:52:22 +1100 Subject: [PATCH] Added MySQL info --- docs/Commands/commands.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/Commands/commands.md b/docs/Commands/commands.md index f843290..8d949b2 100644 --- a/docs/Commands/commands.md +++ b/docs/Commands/commands.md @@ -61,4 +61,13 @@ Some examples of grep usage can be found [here](/examples/grep) These commands can be used to manipulate data in the standard input -#### rev \ No newline at end of file +#### rev + +#### mysql + +**Importing a DB** + +You can use `mysql` to import an SQL database through the command line, this is the faster and preferred way (if compared to something like phpMyAdmin) + +The command to import a database is `mysql -u DBUSER -p DBNAME < SQLFILE` you will be prompted to enter the DBPASS +The reason we use a DBUSER and DBPASSWORD is so that the database is imported with the users permissions \ No newline at end of file