Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 目标机器上用Docker拉起MySQL同时监听IPv4与IPv6端口后SQL脚本执行异常 #1992

Closed
jsonwan opened this issue Apr 25, 2023 · 0 comments
Labels
done 已上线到正式环境并验收通过 for test 可以在测试环境进行验收 kind/bug 程序故障Bug,漏洞

Comments

@jsonwan
Copy link
Collaborator

jsonwan commented Apr 25, 2023

Version / Branch / tag
3.6.x

出了什么问题?(What Happened?)
image
image
原因:
问题在MySQL包装脚本:
HOST_AND_PORT=netstat -ntl | grep ":${PORT} " | awk '{print $4}'
这一句获取了2行结果导致异常。

如何复现?(How to reproduce?)
目标机器上用Docker拉起MySQL,到目标机器执行SQL脚本。

预期结果(What you expect?)
SQL脚本正常执行。

@jsonwan jsonwan added the kind/bug 程序故障Bug,漏洞 label Apr 25, 2023
@jsonwan jsonwan changed the title bugfix: 目标机器上用Docker拉起MySQL同时监听IPv4与IPv6端口后SQL脚本执行异常 fix: 目标机器上用Docker拉起MySQL同时监听IPv4与IPv6端口后SQL脚本执行异常 Apr 27, 2023
jsonwan added a commit that referenced this issue Oct 10, 2023
fix: 目标机器上用Docker拉起MySQL同时监听IPv4与IPv6端口后SQL脚本执行异常 #1992
jsonwan added a commit that referenced this issue Oct 10, 2023
fix: 目标机器上用Docker拉起MySQL同时监听IPv4与IPv6端口后SQL脚本执行异常 #1992
jsonwan added a commit that referenced this issue Oct 10, 2023
fix: 目标机器上用Docker拉起MySQL同时监听IPv4与IPv6端口后SQL脚本执行异常 #1992
jsonwan added a commit that referenced this issue Oct 10, 2023
fix: 目标机器上用Docker拉起MySQL同时监听IPv4与IPv6端口后SQL脚本执行异常 #1992
@bkjob-bot bkjob-bot added the done 已上线到正式环境并验收通过 label Oct 23, 2023
@bkjob-bot bkjob-bot added the for test 可以在测试环境进行验收 label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done 已上线到正式环境并验收通过 for test 可以在测试环境进行验收 kind/bug 程序故障Bug,漏洞
Projects
None yet
Development

No branches or pull requests

2 participants