Database name is not included in this query

Description

Hello guys,

PMM is reporting an error:
```Database name is not included in this query. Explain could not be triggered without this info: Error 1046 (3D000): No database selected```, even though I have selected the Schema.

Do you have any solutions to this problem?
Thank you everyone

How to test

None

How to document

None

Attachments

2

Activity

Aaditya Dubey August 25, 2023 at 11:35 AM

Hi , ,

Thank you for the report.
Able to repeat the issue in PMM 2.38.1, However issue is not repeating in PMM 2.39, We suggest you to upgrade to PMM 2.39 to fix the issue.

Lauri Veski August 2, 2023 at 12:42 PM

Hi! we are seeing same issue on PMM ver 2.38.1 (pmm agent is also on same version. ). Source is slow-log and i also checked queries from slow-log file from mysql machine and all queries had "Schema" field filled. 

We are using Percona  Server mysql Ver 8.0.32-24.

Cannot Reproduce

Details

Assignee

Reporter

Priority

Needs QA

Yes

Affects versions

Smart Checklist

Created July 31, 2023 at 8:19 AM
Updated August 25, 2023 at 11:36 AM
Resolved August 25, 2023 at 11:36 AM