From 878c522a9623c6f238b101957dd505d2414cc6e4 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Thu, 11 Sep 2014 12:09:34 +0530 Subject: [PATCH] Fixed Anemometer not installing on some servers. Added Anemometer user permission --- src/vendor/ee_ven_install_utils.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vendor/ee_ven_install_utils.sh b/src/vendor/ee_ven_install_utils.sh index 502598d1..c962b3ed 100644 --- a/src/vendor/ee_ven_install_utils.sh +++ b/src/vendor/ee_ven_install_utils.sh @@ -70,7 +70,7 @@ function ee_ven_install_utils() # phpinfo() echo -e "" &>> /var/www/22222/htdocs/php/info.php fi - dpkg -l | grep mysql-server &>> $EE_COMMAND_LOG + mysqladmin ping &> /dev/null if [ $? -eq 0 ]; then # Setup Anemometer if [ ! -d /var/www/22222/htdocs/db/anemometer ]; then @@ -116,6 +116,9 @@ function ee_ven_install_utils() echo -e "}" >> /etc/logrotate.d/mysql-server fi + # Set anemometer privileges to databases + mysql -e "grant all privileges on *.* to 'anemometer'@'localhost'" ; + # Download pt-query-advisor Fixed #189 wget -q http://bazaar.launchpad.net/~percona-toolkit-dev/percona-toolkit/2.1/download/head:/ptquerydigest-20110624220137-or26tn4expb9ul2a-16/pt-query-digest -O /usr/bin/pt-query-advisor \ || ee_lib_error "Unable to copy download pt-query-advisor, exit status = " $?