You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
printf "\n\nThis installation was unable to create the required newrelic user.\nWe attempted to create the user with the SQL statement below.\nPerhaps the MySql root DB password is incorrect.\nPlease either re-run the installation with the correct root DB password, or follow the manual installation steps documented at https://docs.newrelic.com/docs/integrations/host-integrations/host-integrations-list/mysql-monitoring-integration/\n\n" >&2
215
218
sudo cat /tmp/sql-create-user.sql
216
219
sudo rm -f /tmp/sql-create-user.sql
220
+
sudo rm -f /tmp/sql-drop-user.sql
217
221
printf "\n"
218
222
echo -e "detail:"$EXEC_OUTPUT
219
223
printf "\n"
220
224
exit 131
221
225
fi
222
226
else
223
227
if [[ -z "$NEW_RELIC_MYSQL_ROOT_PASSWORD" ]]; then
echo "MySqlOutput:"$EXEC_OUTPUT | sudo tee -a {{.NEW_RELIC_CLI_LOG_FILE_PATH}} > /dev/null
@@ -231,13 +237,15 @@ install:
231
237
printf "\n\nThis installation was unable to create the required newrelic user.\nWe attempted to create the user with the SQL statement below.\nPlease follow the manual installation steps documented at https://docs.newrelic.com/docs/integrations/host-integrations/host-integrations-list/mysql-monitoring-integration/ \n\n" >&2
printf "\n\nThis installation was unable to create the required newrelic user.\nWe attempted to create the user with the SQL statement below.\nPerhaps the MySql root DB password is incorrect.\nPlease either re-run the installation with the correct root DB password, or follow the manual installation steps documented at https://docs.newrelic.com/docs/integrations/host-integrations/host-integrations-list/mysql-monitoring-integration/ \n\n" >&2
205
208
sudo cat /tmp/sql-create-user.sql
206
209
sudo rm -f /tmp/sql-create-user.sql
210
+
sudo rm -f /tmp/sql-drop-user.sql
207
211
printf "\n"
208
212
echo -e "detail:"$EXEC_OUTPUT
209
213
printf "\n"
210
214
exit 131
211
215
fi
212
216
else
213
217
if [[ -z "$NEW_RELIC_MYSQL_ROOT_PASSWORD" ]]; then
echo "MySqlOutput:"$EXEC_OUTPUT | sudo tee -a {{.NEW_RELIC_CLI_LOG_FILE_PATH}} > /dev/null
@@ -221,13 +227,15 @@ install:
221
227
printf "\n\nThis installation was unable to create the required newrelic user.\nWe attempted to create the user with the SQL statement below.\nPlease follow the manual installation steps documented at https://docs.newrelic.com/docs/integrations/host-integrations/host-integrations-list/mysql-monitoring-integration/\n\n" >&2
printf "\n\nThis installation was unable to create the required newrelic user.\nWe attempted to create the user with the SQL statement below.\nPerhaps the MySql root DB password is incorrect.\nPlease either re-run the installation with the correct root DB password, or follow the manual installation steps documented at https://docs.newrelic.com/docs/integrations/host-integrations/host-integrations-list/mysql-monitoring-integration/\n\n" >&2
201
203
sudo cat /tmp/sql-create-user.sql
202
204
sudo rm -f /tmp/sql-create-user.sql
205
+
sudo rm -f /tmp/sql-drop-user.sql
203
206
printf "\n"
204
207
echo -e "detail:"$EXEC_OUTPUT
205
208
printf "\n"
206
209
exit 131
207
210
fi
208
211
else
209
-
EXEC_OUTPUT=$(eval sudo mysql -u root --port $NR_CLI_DB_PORT < /tmp/sql-create-user.sql 2>&1)
212
+
if [[ -z "$NEW_RELIC_MYSQL_ROOT_PASSWORD" ]]; then
printf "\n\nThis installation was unable to create the required newrelic user.\nWe attempted to create the user with the SQL statement below.\nPlease follow the manual installation steps documented at https://docs.newrelic.com/docs/integrations/host-integrations/host-integrations-list/mysql-monitoring-integration/\n\n" >&2
0 commit comments