Insufficient Privileges Reported When the root User Runs the PURGE BINARY LOGS Command
Scenario
When the root user runs the PURGE BINARY LOGS command, the following error information is displayed:
ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER or BINLOG_ADMIN privilege(s) for this operation
Possible Causes
During instance creation, the BINLOG_ADMIN privilege is not granted to the root user by default. This privilege needs to be manually granted.
Solution
Use the root account to grant the BINLOG_ADMIN privilege to itself.
GRANT BINLOG_ADMIN ON *.* TO `root`@`%` WITH GRANT OPTION; FLUSH PRIVILEGES;
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot