mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
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
ea81620820
commit
206787b3aa
@ -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>
|
2008-11-26 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
* util/plugin/mysql_plugin.sh: New Mysql plugin for Plugin server.
|
* 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 none -s localhost -q Connections"
|
||||||
echo " ./mysql_plugin.sh -u root -p anypass -s 192.168.50.24 -q Innodb_rows_read"
|
echo " ./mysql_plugin.sh -u root -p anypass -s 192.168.50.24 -q Innodb_rows_read"
|
||||||
echo ""
|
echo ""
|
||||||
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if [ $# -eq 0 ]
|
||||||
|
then
|
||||||
|
help
|
||||||
|
fi
|
||||||
|
|
||||||
# Main parsing code
|
# Main parsing code
|
||||||
|
|
||||||
while getopts "u:p:s:q:" optname
|
while getopts ":hu:p:s:q:" optname
|
||||||
do
|
do
|
||||||
case "$optname" in
|
case "$optname" in
|
||||||
|
"h")
|
||||||
|
help
|
||||||
|
;;
|
||||||
"u")
|
"u")
|
||||||
USER=$OPTARG
|
USER=$OPTARG
|
||||||
;;
|
;;
|
||||||
"p")
|
"p")
|
||||||
PASSWORD=$OPTARG
|
PASSWORD=$OPTARG
|
||||||
@ -40,6 +50,12 @@ while getopts "u:p:s:q:" optname
|
|||||||
"q")
|
"q")
|
||||||
QUERY=$OPTARG
|
QUERY=$OPTARG
|
||||||
;;
|
;;
|
||||||
|
?)
|
||||||
|
help
|
||||||
|
;;
|
||||||
|
default)
|
||||||
|
help
|
||||||
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user