How to grant MySQL(8) roles to users in AWS RDS?. The following queries work on mysql servers other than AWS RDS MySQL.
create role 'ReadRole'; grant select on *.* to 'ReadRole'; create user 'user1'@'%' identified by 'secret'; grant 'ReadRole' to 'user1'@'%';
When I execute the same on RDS with the default mysql account created, I will end up with the following error,
ERROR 1227 (42000): Access denied; you need (at least one of) the WITH ADMIN, ROLE_ADMIN, SUPER privilege(s) for this operation
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.