ITPub博客

首页 > 数据库 > > 数据库备份与恢复-重置用户密码

数据库备份与恢复-重置用户密码

作者:GaussDB_数据库 时间:2020-02-17 14:22:35 0 删除 编辑

本节描述如何重置用户密码。

 说明:

定期重置数据库密码,如,每90天或180天修改一次。

  1. 重置主数据库用户的密码。
    python dmserver.py resetpassword
    例如:
    [dminstalluser@blrlabvm_171_29 ~]$ python dmserver.py resetpassword
    Enter admin username for db: apprim
    Enter the password for apprim:
    Enter the username to reset password: aaprimread
    Enter the new password:
    Re-type the new password:
    [21/21] Stopping - COMPLETED
    [21/21] Verify stop - COMPLETED
    [21/21] Changing password - COMPLETED
    [21/21] Starting - COMPLETED
    [21/21] Verify registration of services - COMPLETED
    Registering services....
    . . . . . . . . . . . . . . . . . . .
    Service Registration Check Unsuccessful, Contact Support.
    Password changed successfully.
    [dminstalluser@blrlabvm_171_29 bin]$
     说明:

    可在install-default.conf文件中获取用户名。

  2. 重置指标数据库的密码。
    python dmserver.py resetpassword
    例如:
    [dminstalluser@blrlabvm_171_29 ~]$ python dmserver.py resetpassword
    Enter admin username for db: apmetric
    Enter the password for apmetric:
    Enter the username to change password: apmetriclocal
    Enter the new password:
    Re-type the new password:
    [21/21] Stopping - COMPLETED
    [21/21] Verify stop - COMPLETED
    [21/21] Changing password - COMPLETED
    [21/21] Starting - COMPLETED
    [21/21] Verify registration of services - COMPLETED
    Registering services....
    . . . . . . . . . . . . . . . . .
    Service Registration Check Unsuccessful, Contact Support.
    Password changed successfully.
    [dminstalluser@blrlabvm_171_29 bin]$
     说明:

    可在install-default.conf文件中获取用户名。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69959250/viewspace-3148050/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2020-01-06

  • 博文量
    2907
  • 访问量
    19228