2008-12-03 Sancho Lerena <slerena@artica.es>
* mysql_plugin.sh: Updated MySQL plugin. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1278 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
dfb6467cb5
commit
6cd25af0f7
|
@ -1,3 +1,8 @@
|
|||
|
||||
2008-12-03 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* mysql_plugin.sh: Updated MySQL plugin.
|
||||
|
||||
2008-11-26 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* util/plugin/mysql_plugin.sh: New Mysql plugin for Plugin server.
|
||||
|
|
|
@ -21,15 +21,25 @@ function help {
|
|||
echo " ./mysql_plugin.sh -u root -p none -s localhost -q Connections"
|
||||
echo " ./mysql_plugin.sh -u root -p anypass -s 192.168.50.24 -q Innodb_rows_read"
|
||||
echo ""
|
||||
exit
|
||||
}
|
||||
|
||||
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
help
|
||||
fi
|
||||
|
||||
# Main parsing code
|
||||
|
||||
while getopts "u:p:s:q:" optname
|
||||
while getopts ":hu:p:s:q:" optname
|
||||
do
|
||||
case "$optname" in
|
||||
"h")
|
||||
help
|
||||
;;
|
||||
"u")
|
||||
USER=$OPTARG
|
||||
USER=$OPTARG
|
||||
;;
|
||||
"p")
|
||||
PASSWORD=$OPTARG
|
||||
|
@ -40,6 +50,12 @@ while getopts "u:p:s:q:" optname
|
|||
"q")
|
||||
QUERY=$OPTARG
|
||||
;;
|
||||
?)
|
||||
help
|
||||
;;
|
||||
default)
|
||||
help
|
||||
;;
|
||||
|
||||
esac
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue