query helper script
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
cfb58cd264
commit
92c64c67d6
6
query.sh
Executable file
6
query.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
P=${P:=$(sed -ne 's#^.*mysql://[^:]*:\([^@]*\).*$#\1#p' config/default.json)}
|
||||||
|
U=${U:=$(sed -ne 's#^.*mysql://\([^:]*\).*$#\1#p' config/default.json)}
|
||||||
|
DB=${DB:=$(sed -ne 's#^.*mysql://[^@]*@[^/]*/\([^/"]*\).*$#\1#p' config/default.json)}
|
||||||
|
mysql -u ${U} --password=${P} ${DB}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user