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

add REPLICATION CLIENT privilege to user mysql roadmin #4

Closed
wants to merge 1 commit into from

Conversation

ldangeard-orange
Copy link

@ldangeard-orange ldangeard-orange commented Oct 20, 2017

For prometheus mysqld_exporter, we use roadmin@localhost user mysql (better than root@localhost). mysqld_exporter needs REPLICATION CLIENT privilege to monitor binlogs size.

Without this privilege we have error messages in mysql_exporter log, such as:

time="2017-09-28T12:19:57Z" level=error msg="Error scraping for collect.binlog_size: Error 1227: Access denied; you need (at least one of) the SUPER, REPLICATION CLIENT privilege(s) for this operation" source="mysqld_exporter.go:335"

The REPLICATION CLIENT privilege enables the use of the SHOW MASTER STATUS, SHOW SLAVE STATUS, and SHOW BINARY LOGS statements.

@gberche-orange
Copy link
Member

thanks @ldangeard-orange for this PR. Please mention in the PR text what tests were run out of https://github.com/orange-cloudfoundry/cf-mysql-release/blob/master/CONTRIBUTING.md#submit-a-pull-request.

Looking at cloudfoundry-attic/mariadb_ctrl@5fa15a4...d746a00 it looks like there are associated tests to the ROadmin user that might need update.

@ldangeard-orange
Copy link
Author

Issues cloudfoundry#184 is accepted.
I close sthis PR

JCL38-ORANGE added a commit that referenced this pull request Apr 29, 2021
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

Successfully merging this pull request may close these issues.

2 participants