Fixed reset-db to use PASSWORD for pw if set
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
ea9bb21878
commit
a076bdf86c
@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
U='photos'
|
||||
P='p4$$w0rd'
|
||||
P=${PASSWORD:p4$$w0rd}
|
||||
D='photos'
|
||||
mysql -u root --password=${PASSWORD} << EOF
|
||||
mysql -u root --password=${P} << EOF
|
||||
DROP DATABASE IF EXISTS ${D};
|
||||
CREATE DATABASE ${D} CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||
GRANT ALL PRIVILEGES ON ${D}.* TO '${U}'@'localhost' IDENTIFIED BY '${P}';
|
||||
|
Loading…
x
Reference in New Issue
Block a user