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

proxysql 2.5.0+ can't work with mysql 8.x backend servers #43

Open
sun-rui opened this issue Jul 23, 2023 · 0 comments
Open

proxysql 2.5.0+ can't work with mysql 8.x backend servers #43

sun-rui opened this issue Jul 23, 2023 · 0 comments

Comments

@sun-rui
Copy link

sun-rui commented Jul 23, 2023

Used the proxysql plugin to configure proxysql 2.5.x with a mysql 8.x innodb cluster, but proxysql failed to connect to the backend servers:

ERROR 9001 (HY000) at line 1: Max connect timeout reached while reaching hostgroup 2 after 10000ms

Checked /var/lib/proxysql/proxysql.log and found the following message:

2023-07-22 18:34:14 MySQL_Monitor.cpp:3745:gr_report_fetching_errs(): [ERROR] Got error. mmsd 0x7f661d860000 , MYSQL 0x7f661d8d0000 , FD 40 : SELECT command denied to user 'monitor'@'mysql1' for table 'replication_group_members'

After granting the access right on performance_schema.* to the monitor user, this issue was fixed.

This issue seems related to the code change since 2.5.0 that added queries to the performance_schema.replication_group_members table, see https://github.com/sysown/proxysql/blob/v2.5.0/lib/MySQL_Monitor.cpp#L498

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant