-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Lightning wants CONFIG privilege to query keyspace name and it confuses on-prem users #54232
Comments
I think demoting the log level from WARN to INFO/DEBUG, and/or hiding the 1227 error is enough. |
There is another related message in log file, it's better to hide it too.
|
|
Amend document to request CONFIG for physical import is fine, as long as document is clear that it won't confuse lightning user. |
I'll try to implement the TODO mentioned in #54243 some day. If that does not work we'll update the docs to require CONFIG. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Run Lightning in logical mode with default configuration, especially leaving
[tikv-importer] keyspace-name
empty.Do not use the
root
user to restore to the downstream TiDB. Rather, create a new user and grantSELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER
on*.*
to that user (as described in the doc).2. What did you expect to see? (Required)
Everything works normally.
3. What did you see instead (Required)
There is a warning saying the CONFIG privilege is needed.
4. What is your TiDB version? (Required)
Lightning v7.5.1, v7.5.2, v8.1.0
The text was updated successfully, but these errors were encountered: