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

Revert/Remove unnecessary database_name config #7049

Merged
merged 2 commits into from
Jul 3, 2020

Conversation

AlexandreYang
Copy link
Member

@AlexandreYang AlexandreYang commented Jul 2, 2020

Partially Reverts #6835

What this PR does:

Motivation

When connecting to admin port of proxysql, providing database argument to pymysql.connect does not have any effect.

Queries like SELECT * FROM stats_mysql_global will continue to work for both admin and stats (users listed in stats_credentials in proxysql.cnf) users.

This is likely due to the fact that stats tables are available by default to both admin and stats users:

A user that connects to Admin with admin-stats_credentials credentials can only access this schema.

Additional details here: #6835 (comment)

cc @tabacco

@AlexandreYang AlexandreYang changed the title Revert "Allow proxysql checks to specify stats database name" Remove unnecessary database_name config Jul 2, 2020
@AlexandreYang AlexandreYang marked this pull request as ready for review July 2, 2020 12:30
@AlexandreYang AlexandreYang requested review from a team as code owners July 2, 2020 12:30
@AlexandreYang AlexandreYang changed the title Remove unnecessary database_name config Revert/Remove unnecessary database_name config Jul 2, 2020
Copy link
Contributor

@apigirl apigirl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 from docs

@FlorianVeaux FlorianVeaux merged commit d6cd177 into master Jul 3, 2020
@FlorianVeaux FlorianVeaux deleted the revert-6835-support-proxysql-stats-user branch July 3, 2020 09:30
FlorianVeaux pushed a commit that referenced this pull request Jul 3, 2020
* Revert "Allow proxysql checks to specify stats database name (#6835)"

This reverts commit 71fa47a.

* Keep removal of stats. prefix and tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants