From 733dc832a5357d1e907b3f6f609b2d633c8075fd Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Wed, 18 Dec 2013 20:02:25 +0530 Subject: [PATCH] ee info: MySQL Information Added --- usr/local/sbin/easyengine | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 2a25f9c2..60910ea8 100755 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -662,6 +662,7 @@ SYSTEMINFO() # MySQL Information MYSQLVER=$(mysql -V | awk '{print($5)}' | cut -d ',' -f1) + MYSQLUSER=$(grep ^user /etc/mysql/my.cnf | awk '{print($3)}') MYSQLPORT=$(mysql -e "show variables" | grep ^port | awk '{print($2)}') MYSQLSOCKET=$(mysql -e "show variables" | grep socket | awk '{print($2)}') MYSQLDATADIR=$(mysql -e "show variables" | grep datadir | awk '{print($2)}') @@ -670,7 +671,12 @@ SYSTEMINFO() MYSQLMAXUSEDCONNECTION=$(mysql -e "show global status" | grep Max_used_connections | awk '{print($2)}') echo -e "\033[34m\n\nMySQL ($MYSQLVER) Information:\n\e[0m" - + echo -e "\033[34mMySQL User:\t\t\t \033[37m$MYSQLUSER\e[0m" + echo -e "\033[34mMySQL port:\t\t\t \033[37m$MYSQLPORT\e[0m" + echo -e "\033[34mMySQL wait_timeout:\t\t \033[37m$MYSQLWAITTIMEOUT\e[0m" + echo -e "\033[34mMySQL Max_used_connections:\t \033[37m$MYSQLMAXUSEDCONNECTION/$MYSQLMAXCONNECTION\e[0m" + echo -e "\033[34mMySQL datadir:\t\t\t \033[37m$MYSQLDATADIR\e[0m" + echo -e "\033[34mMySQL socket:\t\t\t \033[37m$MYSQLSOCKET\e[0m" } NGINXBUCKETSIZE()