Browse Source

Fix ee info for mysql information

old-stable
Mitesh Shah 11 years ago
parent
commit
8e14dac3a9
  1. 4
      usr/local/sbin/easyengine

4
usr/local/sbin/easyengine

@ -767,10 +767,10 @@ EEINFO()
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)}')
MYSQLSOCKET=$(mysql -e "show variables" | grep "^socket" | awk '{print($2)}')
MYSQLDATADIR=$(mysql -e "show variables" | grep datadir | awk '{print($2)}')
MYSQLWAITTIMEOUT=$(mysql -e "show variables" | grep ^wait_timeout | awk '{print($2)}')
MYSQLMAXCONNECTION=$(mysql -e "show variables" | grep max_connections | awk '{print($2)}')
MYSQLMAXCONNECTION=$(mysql -e "show variables" | grep "^max_connections" | awk '{print($2)}')
MYSQLMAXUSEDCONNECTION=$(mysql -e "show global status" | grep Max_used_connections | awk '{print($2)}')
echo -e "\033[34m\n\nMySQL ($MYSQLVER) Information:\n\e[0m"

Loading…
Cancel
Save