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

Ubuntu22.04 mysql8.0.39 failed to watch mysql #158

Open
AvaIon opened this issue Dec 11, 2024 · 1 comment
Open

Ubuntu22.04 mysql8.0.39 failed to watch mysql #158

AvaIon opened this issue Dec 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@AvaIon
Copy link

AvaIon commented Dec 11, 2024

Describe the bug
failed to watch mysql

To Reproduce
Steps to reproduce the behavior:
sudo ./kyanos watch mysql
mysql -uroot -p
select * from table;

Expected behavior
监控窗口没有捕获到请求 正常来说应该是可以捕获到查询语句的?

Screenshots

Information (please complete the following information):

Copy link

dosubot bot commented Dec 11, 2024

@AvaIon 你好! 我是Dosu。我是一个能帮助你解决问题、回答疑问并成为贡献者的机器人。在等待人类维护者的过程中,我会尽力帮助你。

When Kyanos fails to capture MySQL queries, there are several potential reasons and troubleshooting steps you can consider:

  1. Kernel BTF Configuration: Ensure that BTF (BPF Type Format) is enabled in your kernel. You can check this with:

    grep CONFIG_DEBUG_INFO_BTF "/boot/config-$(uname -r)"

    If BTF is not enabled, you may need to download the necessary BTF file and use the --btf option when starting Kyanos [1].

  2. Network and System Permissions: Verify that Kyanos has the necessary permissions to access network interfaces and system resources. Running Kyanos with sudo should typically provide the required permissions.

  3. MySQL Version Compatibility: While there is no specific information on compatibility issues with MySQL 8.0.39, ensure that your MySQL version is supported by Kyanos. Compatibility issues might arise if there are protocol changes in newer MySQL versions.

  4. Check for Errors and Logs: Review any error messages or logs generated by Kyanos for clues about what might be going wrong. This can help identify if there are specific protocol errors or unexpected packet structures.

  5. Ensure Correct Command Usage: Double-check the command you are using to start Kyanos and ensure it is correctly configured to monitor MySQL traffic. The watch command should be set up to capture the appropriate network traffic.

If these steps do not resolve the issue, further investigation into the specific environment and configuration might be necessary.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the bug Something isn't working label Dec 11, 2024
@hengyoush hengyoush added this to v1.5.0 Dec 11, 2024
@hengyoush hengyoush moved this to Todo in v1.5.0 Dec 11, 2024
@hengyoush hengyoush self-assigned this Dec 11, 2024
@hengyoush hengyoush added help wanted Extra attention is needed good first issue Good for newcomers and removed good first issue Good for newcomers labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Status: Todo
Development

No branches or pull requests

2 participants