Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple utilities to dump and load database
- Loading branch information
Dave Cross
committed
Oct 2, 2015
1 parent
0017816
commit d4e2b56
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# Make sure we're in the expected place | ||
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" | ||
cd $SCRIPTPATH | ||
cd .. | ||
|
||
mysql -u$LIT_USER -p$LIT_PASS -Dliterature < db/literature.sql | ||
mysql -u$LIT_USER -p$LIT_PASS -Dliterature < db/literature.dat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# Make sure we're in the expected place | ||
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" | ||
cd $SCRIPTPATH | ||
cd .. | ||
|
||
mysqldump -u$LIT_USER --no-data -p$LIT_PASS literature > db/literature.sql | ||
mysqldump -u$LIT_USER --no-create-info -p$LIT_PASS literature > db/literature.dat |