fnp
/
wolnelektury.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
dba22eb62731e531440ebd0e35c268697651516f
[wolnelektury.git]
/
scripts
/
drop-tables
1
#!/bin/bash
2
DATABASE=$1
3
USERNAME=$2
4
PASSWORD=$3
5
mysqldump -u$USERNAME -p$PASSWORD --add-drop-table --no-data $DATABASE | grep ^DROP | mysql -u$USERNAME -p$PASSWORD $DATABASE