fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
autocomplete style
[wolnelektury.git]
/
scripts
/
drop-tables
diff --git a/scripts/drop-tables
b/scripts/drop-tables
new file mode 100755
(executable)
index 0000000..
dba22eb
--- /dev/null
+++ b/
scripts/drop-tables
@@ -0,0
+1,5
@@
+#!/bin/bash
+DATABASE=$1
+USERNAME=$2
+PASSWORD=$3
+mysqldump -u$USERNAME -p$PASSWORD --add-drop-table --no-data $DATABASE | grep ^DROP | mysql -u$USERNAME -p$PASSWORD $DATABASE