微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

postgresql – 重命名Amazon RDS主用户名

更改密码很容易通过控制台完成.在Postgresql的RDS上创建后,有没有办法更改主用户名?如果是这样,怎么办?
您不能更改用户名.您可以检查以下链接,描述如何更改主密码,如果亚马逊添加了更改您将在那里找到的用户名功能

尝试在AWS CLI for RDS找到:

modify-db-instance --db-instance-identifier <value> --master-user-password (string)

–master-user-password(string)

The new password for the DB instance master user. Can be any printable
ASCII character except “/”,“””,or “@”.

Changing this parameter does not result in an outage and the change is
asynchronously applied as soon as possible. Between the time of the
request and the completion of the request,the MasterUserPassword
element exists in the PendingModifiedValues element of the operation
response. Default: Uses existing setting

Constraints: Must be 8 to 41 alphanumeric characters (MysqL,MariaDB,
and Amazon aurora),8 to 30 alphanumeric characters (Oracle),or 8 to
128 alphanumeric characters (sql Server).

Amazon RDS命令行界面(CLI)已被弃用.而是使用AWS CLI进行RDS.

通过AWS Management Console,选择您需要重置密码的实例,单击“修改”,然后选择一个新的主密码.

If you don’t want to use the AWS Console,you can use the rds-modify-db-instance command (as per Amazon’s documentation for RDS) to reset it directly,given the AWS command line tools: rds-modify-db-instance instance-name –master-user-password examplepassword

原文地址:https://www.jb51.cc/postgresql/192630.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐