summaryrefslogtreecommitdiffstats
path: root/drop-all-tables.sh
diff options
context:
space:
mode:
Diffstat (limited to 'drop-all-tables.sh')
-rw-r--r--drop-all-tables.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/drop-all-tables.sh b/drop-all-tables.sh
new file mode 100644
index 00000000..87783b77
--- /dev/null
+++ b/drop-all-tables.sh
@@ -0,0 +1,4 @@
+mysql_username='cnprog'
+mysql_database='cnprog'
+mysqldump -u $mysql_username -p --add-drop-table --no-data $mysql_database | grep ^DROP
+#| mysql -u[USERNAME] -p[PASSWORD] [DATABASE]