问题描述
使用管理员账号在阿里云mysql8中创建角色role后,通过授权语句授权user(GRANT role_name TO user;)报错返回
> 1227 – Access denied; you need (at least one of) the WITH ADMIN, ROLE_ADMIN, SUPER privilege(s) for this operation
使用管理员账号在阿里云mysql8中创建角色role后,通过授权语句授权user(GRANT role_name TO user;)报错返回
> 1227 – Access denied; you need (at least one of) the WITH ADMIN, ROLE_ADMIN, SUPER privilege(s) for this operation
阿里云MySQL高权限用户是不能grant role的,需要ADMIN、ROLE_ADMIN,、SUPER其中之一,但是阿里云MySQL均未开放,可以查看:https://help.aliyun.com/document_detail/146395.html?spm=a2c4g.11186623.0.0.563232eeiv0TKX,若还存在存在其他疑问可以提交工单
提示很明显啊,你必须要用管理员,具有管理员权限或者超级管理员来进行这一操作。
官方解释:https://www.24x7servermanagement.com/clients/index.php?rp=/knowledgebase/80/sharp1227—Access-denied-you-need-at-least-one-of-the-SUPER-privileges-for-this-operation.html