博客
关于我
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/

你可能感兴趣的文章
mysql5.7安装
查看>>
mysql5.7性能调优my.ini
查看>>
MySQL5.7新增Performance Schema表
查看>>
Mysql5.7深入学习 1.MySQL 5.7 中的新增功能
查看>>
Webpack 之 basic chunk graph
查看>>
Mysql5.7版本单机版my.cnf配置文件
查看>>
mysql5.7的安装和Navicat的安装
查看>>
mysql5.7示例数据库_Linux MySQL5.7多实例数据库配置
查看>>
Mysql8 数据库安装及主从配置 | Spring Cloud 2
查看>>
mysql8 配置文件配置group 问题 sql语句group不能使用报错解决 mysql8.X版本的my.cnf配置文件 my.cnf文件 能够使用的my.cnf配置文件
查看>>
MySQL8.0.29启动报错Different lower_case_table_names settings for server (‘0‘) and data dictionary (‘1‘)
查看>>
MYSQL8.0以上忘记root密码
查看>>
Mysql8.0以上重置初始密码的方法
查看>>
mysql8.0新特性-自增变量的持久化
查看>>
Mysql8.0注意url变更写法
查看>>
Mysql8.0的特性
查看>>
MySQL8修改密码报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
查看>>
MySQL8修改密码的方法
查看>>
Mysql8在Centos上安装后忘记root密码如何重新设置
查看>>
Mysql8在Windows上离线安装时忘记root密码
查看>>