博客
关于我
VCSA5.x数据库密码更改
阅读量:597 次
发布时间:2019-03-12

本文共 795 字,大约阅读时间需要 2 分钟。

背景

VCSA的数据库密码长期不用或某次定期修改,密码忘记,需要修改密码。

操作

1、更改嵌入式数据库密码

1)SSH连接到vCenter Server Appliance,编辑数据库文件

embedded_db.cfg:

vi /etc/vmware-vpx/embedded_db.cfg

在末行模式中定位查找EMB_DB_‘PASSWORD’,更改单引号之间的密码。

2)打开vc 数据库配置文件,更改数据库密码。

vi /etc/vmware-vpx/vcdb.properties

2、更改vc和postgres数据库用户的密码

1)连接到vPostgres数据库:

/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres

2)执行以下SQL,更改vc和postgres用户的密码:

alter user postgres with password ‘new-password’;

alter user vc with password ‘new-password’;

3)退出数据库:\q

4)修改 .pgpass文件:vi /root/.pgpass,更新密码

localhost:5432:VCDB:postgres:new-password

localhost:5432:postgres:postgres:new-password
localhost:5432:VCDB:vc:new-password

3、更改postgres数据库密码:

1)更改vPostgres数据库的密码:

passwd postgres

2)更新vpxd.cfg文件中的加密密码

/usr/sbin/vpxd -p //按提示时输入密码

3)重新启动vpxd服务:

/etc/init.d/vmware-vpxd restart

转载地址:http://pcwxz.baihongyu.com/

你可能感兴趣的文章
Mysql Can't connect to MySQL server
查看>>
mysql case when 乱码_Mysql CASE WHEN 用法
查看>>
Multicast1
查看>>
mysql client library_MySQL数据库之zabbix3.x安装出现“configure: error: Not found mysqlclient library”的解决办法...
查看>>
MySQL Cluster 7.0.36 发布
查看>>
Multimodal Unsupervised Image-to-Image Translation多通道无监督图像翻译
查看>>
MySQL Cluster与MGR集群实战
查看>>
multipart/form-data与application/octet-stream的区别、application/x-www-form-urlencoded
查看>>
mysql cmake 报错,MySQL云服务器应用及cmake报错解决办法
查看>>
Multiple websites on single instance of IIS
查看>>
mysql CONCAT()函数拼接有NULL
查看>>
multiprocessing.Manager 嵌套共享对象不适用于队列
查看>>
multiprocessing.pool.map 和带有两个参数的函数
查看>>
MYSQL CONCAT函数
查看>>
multiprocessing.Pool:map_async 和 imap 有什么区别?
查看>>
MySQL Connector/Net 句柄泄露
查看>>
multiprocessor(中)
查看>>
mysql CPU使用率过高的一次处理经历
查看>>
Multisim中555定时器使用技巧
查看>>
MySQL CRUD 数据表基础操作实战
查看>>