Skip to content

Commit 5f556a5

Browse files
authored
完善慢日志分析脚本 (#2548)
当脚本与archery不在同一个服务器上运行,原有写法将会报错
1 parent 0b74338 commit 5f556a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/analysis_slow_query.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fi
2828
#收集日志
2929
#RDS需要增加--no-version-check选项
3030
${pt_query_digest} \
31-
--user=${archery_db_user} --password=${archery_db_password} --port=${archery_db_port} \
31+
--user=${archery_db_user} --password=${archery_db_password} --host=${archery_db_host} --port=${archery_db_port} \
3232
--review h=${archery_db_host},D=${archery_db_database},t=mysql_slow_query_review \
3333
--history h=${archery_db_host},D=${archery_db_database},t=mysql_slow_query_review_history \
3434
--no-report --limit=100% --charset=utf8 \

0 commit comments

Comments
 (0)