SRM 4.4.x:如何更改 MySQL 密码

Summary: 如果出于安全原因需要更改 MySQL 密码,请参阅以下说明。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

如何更改 MySQL 密码 4.4.x:   

步骤 1:   
Linux
创建 hostnames.conf 文件(如下所示),然后输入以下内容:   
示例:  #cat opt\APG\hostnames.conf
frontend=xxxx.xxx.emc.com
primarybackend= xxxx.xxx.emc.com
additionalbackend_1=xxxx.xxx.emc.com
collector_1= xxxx.xxx.emc.com
Username: apg
New Password: changeme1234
Re-enter Password: changeme1234

Windows
示例:dir program files\APG\hostnames.conf
frontend=xxxx.xxx.emc.com
primarybackend= xxxx.xxx.emc.com
additionalbackend_1=xxxx.xxx.emc.com
collector_1= xxxx.xxx.emc.com
Username: apg
New Password: changeme1234
Re-enter Password: changeme1234

步骤 2:    
Linux
运行如下脚本:   
xxxxxx:/opt/APG/bin # ./launch-update-backend-passwords.sh -c /opt/APG/hostnames.conf
Username: apg
New Password: changeme1234
Re-enter Password: changeme1234

Windows
xxxxxx: \program files\APG\bin launch-update-backend-passwords.cmd -c program files \APG\hostnames.conf
Username: apg
New Password: changeme1234
Re-enter Password: changeme1234
Updating...
Flushing Privileges
  • Stopping 'webservice-gateway Default'...
  • Stopping 'webservice-gateway Default'... [ OK ]
  • Starting 'webservice-gateway Default'...
  • Starting 'webservice-gateway Default'...[ OK ]
  • Stopping 'compliance-backend generic-compliance'...
  • Stopping 'compliance-backend generic-compliance'...[ OK ]
  • Starting 'compliance-backend generic-compliance'...
  • Starting 'compliance-backend generic-compliance'...[ OK ]
  • apg 用户的密码已更改,并且后端更新了所有配置文件。 
  • 注:如果“root”密码已更改,请在所有服务器上更改密码,然后再尝试为“apg”更改。
  • 注:运行上述步骤,在添加新的后端服务器后更改默认密码。保护 MySQL 数据库
此过程位于Dell EMC M&R 安全配置指南第 46 页。

完成后,请使用 mysql-client 脚本及新密码登录 MySQL 数据库。

Affected Products

SRM
Article Properties
Article Number: 000181868
Article Type: How To
Last Modified: 18 Aug 2021
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.