加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

postgresql – 重命名Amazon RDS主用户名

发布时间:2020-12-13 16:27:18 所属栏目:百科 来源:网络整理
导读:更改密码很容易通过控制台完成.在PostgreSQL的RDS上创建后,有没有办法更改主用户名?如果是这样,怎么办? 您不能更改用户名.您可以检查以下链接,描述如何更改主密码,如果亚马逊添加了更改您将在那里找到的用户名的功能: 尝试在AWS CLI for RDS找到: modify
更改密码很容易通过控制台完成.在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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读