首页 > 数据库 > > 数据库备份与恢复-重置用户密码
本节描述如何重置用户密码。
说明:定期重置数据库密码,如,每90天或180天修改一次。
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文件中获取用户名。
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/ ,如需转载,请注明出处,否则将追究法律责任。