【发布时间】:2021-01-07 18:06:36
【问题描述】:
使用我的 Ubuntu 终端 mysql,我已经使用我的 master_account 帐户成功连接到 AWS MySQL RDS 实例,但是,当我运行标准时
CREATE USER 'new_user'@'%' IDENTIFIED BY '12345';
我收到了典型的 ERROR 1227 (42000): Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation 错误消息。
当我运行SHOW GRANTS FOR 'master_account' 时,我得到:
+-----------------------------+
| Grants for master_account@%
|
+-----------------------------+
| GRANT USAGE ON *.* TO 'master_account'@'%'
|
| GRANT ALL PRIVILEGES ON `dbname`.* TO
'master_account'@'%' WITH GRANT OPTION |
+----------------------+
我一定是做错了什么,但我不确定问题出在哪里,因为'master_account 拥有所有权限,因此,我应该能够创建新用户吗?
顺便说一句,这个 RDS 实例是来自用于开发目的的只读副本的PROMOTED。会是这个原因吗?
【问题讨论】:
标签: mysql linux amazon-web-services ubuntu amazon-rds