commit 1e32fe78f689490cfdeb8bb7b0b33edcfc019946 Author: Tom Willemse Date: Mon Jul 22 23:01:45 2013 +0200 Initial commit diff --git a/copydb b/copydb new file mode 100755 index 0000000..51e5602 --- /dev/null +++ b/copydb @@ -0,0 +1,22 @@ +#!/bin/zsh + +echo -n 'Database root PW (for DB creation): ' +read -s ROOTPW +echo + +echo -n 'Database user for new DB: ' +read DBUSER + +echo -n 'Database user PW for new DB: ' +read -s DBPASSW +echo + +mysql -u root -p"$ROOTPW" -B <