简体   繁体   English

MySQL和Amazon RDS DBA用户

[英]MySQL and Amazon RDS DBA user

I have a new MySQL setup in Amazon RDS. 我在Amazon RDS中有一个新的MySQL设置。 Created the "Master User" when launching the instance. 启动实例时创建了“主用户”。 Able to connect without issue. 能够毫无问题地连接。 Then noticed that user was not a DBA. 然后注意到该用户不是DBA。 When trying to fix this in MySQL Workbench the following error appears; 尝试在MySQL Workbench中修复此问题时,出现以下错误;

Error changing account MyDBA@%%: Access denied for user 'MyDBA'@'%%' (using  password: YES)

How do I fix this? 我该如何解决? Is in Amazon RDS someplace? 在Amazon RDS中吗? In Workbench? 在工作台上? New to MySQL so sorry for the simple question but I cannot find an answer. MySQL的新手,为这个简单的问题感到抱歉,但是我找不到答案。

edit: Just to be clear MyDBA is the master user created in RDS when the instance created, so I have no other account to log in as 编辑:只是要清楚MyDBA是实例创建时在RDS中创建的主用户,因此我没有其他帐户可以作为登录

User roles are not an actual MySQL Server concept. 用户角色不是实际的MySQL Server概念。 That's something the Workbench developers just made up, in their characteristically feeble attempts to be "helpful." 这就是Workbench开发人员所做的事情,他们在尝试“帮助”方面通常微不足道。

To aid in assigning privileges to MySQL Server users, MySQL Workbench introduces the concept of Administrative Roles. 为了帮助向MySQL Server用户分配特权,MySQL Workbench引入了管理角色的概念。

[...] [...]

DBA : Grants all privileges DBA :授予所有特权

http://dev.mysql.com/doc/workbench/en/wb-mysql-connections-navigator-management-users-and-privileges.html http://dev.mysql.com/doc/workbench/en/wb-mysql-connections-navigator-management-users-and-privileges.html

The problem is, "all privileges" are not available on RDS. 问题是,“所有特权”在RDS上不可用。

In order to deliver a managed service experience, Amazon RDS [...] restricts access to certain system procedures and tables that require advanced privileges. 为了提供托管服务体验,Amazon RDS限制了对某些需要高级特权的系统过程和表的访问。

http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.MySQL.CommonDBATasks.html http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.MySQL.CommonDBATasks.html

Specifically, you cannot have the SUPER privilege on RDS. 具体来说,您不能在RDS上拥有SUPER特权 Not even the master user has this. 甚至主用户都没有这个。

You also cannot grant a privilege to a user that you don't possess yourself, so creating a different user and trying to give them the DBA "role" will not work, either. 您也不能向您不拥有的用户授予特权,因此创建其他用户并尝试向他们授予DBA“角色”也将不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM