HCoop
/
clinton
/
domtool2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Password prompts for MySQL adduser
[clinton/domtool2.git]
/
src
/
plugins
/
domtool-mysql
1
#!/bin/sh -e
2
3
case
$1
in
4
adduser
)
5
echo
"I would create MySQL user
$2
with password
$3
."
6
;;
7
createdb
)
8
echo
"I would create MySQL table
$2_
$3
for user
$2
."
9
;;
10
*)
11
echo
"Usage: domtool-mysql [adduser <user> | createdb <user> <table>]"
12
;;
13
esac