No SUPER Permissions When Restoring an RDS for MySQL Full Backup to a Local MySQL Database
Scenario
If you want to set up a local standby MySQL database for your RDS for MySQL instance, you can restore your instance data to the local database from full backups. When you run the change master command to establish a primary/standby relationship between the local database and your RDS for MySQL instance, the following error may occur:
Error 1227
ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER privilege(s) for this operation
Possible Causes
The root user of your RDS for MySQL instance does not have the SUPER permission.
Solution
Grant the SUPER permission to the root user. Do as follows:
- To enable password-free authentication for the local MySQL database, add skip-grant-tables=on under [mysqld] in the my.cnf configuration file. Example:
- Restart the mysqld process.
- Log in to the local database as user rdsAdmin in password-free mode.
mysql -urdsAdmin
- Grant permissions to the root user.
grant all on *.* to root @'%';
flush privileges;
- To disable password-free authentication, delete skip-grant-tables=on under [mysqld] from the my.cnf configuration file.
- Restart the mysqld process.
- Log in to the local database as root and check the permissions.
Run the change master command as the root user again.
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