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:
slerena 2008-12-03 12:18:13 +00:00
parent dfb6467cb5
commit 6cd25af0f7
2 changed files with 23 additions and 2 deletions

View File

@ -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.

View File

@ -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