Browse Source

Fixed drop database if not exits error

old-stable
Mitesh Shah 11 years ago
parent
commit
4b2c3832c9
  1. 7
      src/vendor/ee_ven_remove_utils.sh

7
src/vendor/ee_ven_remove_utils.sh

@ -8,9 +8,6 @@ function ee_ven_remove_utils()
|| ee_lib_error "Unable to remove EasyEngine (ee) admin utilities"
# Drop Anemometer database
mysql -e "show databases like 'slow_query_log'" &>> $EE_COMMAND_LOG
if [ $? -eq 0 ]; then
mysql -e "drop database slow_query_log" \
|| ee_lib_error "Unable to drop slow_query_log database, exit status = " $?
fi
mysql -e "drop database if exists slow_query_log" \
|| ee_lib_error "Unable to drop slow_query_log database, exit status = " $?
}

Loading…
Cancel
Save