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
214
218
sudo cat /tmp/sql-create-user.sql
215
219
sudo rm -f /tmp/sql-create-user.sql
220
+
sudo rm -f /tmp/sql-drop-user.sql
216
221
printf "\n"
217
222
echo -e "detail:"$EXEC_OUTPUT
218
223
printf "\n"
219
224
exit 131
220
225
fi
221
226
else
222
227
if [[ -z "$NEW_RELIC_MYSQL_ROOT_PASSWORD" ]]; then
echo "MySqlOutput:"$EXEC_OUTPUT | sudo tee -a {{.NEW_RELIC_CLI_LOG_FILE_PATH}} > /dev/null
@@ -230,13 +237,15 @@ install:
230
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
204
208
sudo cat /tmp/sql-create-user.sql
205
209
sudo rm -f /tmp/sql-create-user.sql
210
+
sudo rm -f /tmp/sql-drop-user.sql
206
211
printf "\n"
207
212
echo -e "detail:"$EXEC_OUTPUT
208
213
printf "\n"
209
214
exit 131
210
215
fi
211
216
else
212
217
if [[ -z "$NEW_RELIC_MYSQL_ROOT_PASSWORD" ]]; then
echo "MySqlOutput:"$EXEC_OUTPUT | sudo tee -a {{.NEW_RELIC_CLI_LOG_FILE_PATH}} > /dev/null
@@ -220,13 +227,15 @@ install:
220
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
200
203
sudo cat /tmp/sql-create-user.sql
201
204
sudo rm -f /tmp/sql-create-user.sql
205
+
sudo rm -f /tmp/sql-drop-user.sql
202
206
printf "\n"
203
207
echo -e "detail:"$EXEC_OUTPUT
204
208
printf "\n"
205
209
exit 131
206
210
fi
207
211
else
208
-
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