Changing the default VMware vCenter Server Appliance database password
book
Article ID: 313577
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
This article provide steps to change the default password of VMware vCenter Server Appliance database when required or if the password is compromised.
Environment
VMware vCenter Server 7.0.x VMware vCenter Server Appliance 6.0.x VMware vCenter Server Appliance 5.1.x VMware vCenter Server Appliance 6.5.x VMware vCenter Server Appliance 5.5.x VMware vCenter Server 6.7.x
Resolution
To change the default password:
Change the embedded database password:
Connect to the vCenter Server Appliance using SSH.
Open the embedded_db.cfg file by running this command:
vi /etc/vmware-vpx/embedded_db.cfg
In the file, locate EMB_DB_'PASSWORD' and change the password between the single quotation marks.
Open the /etc/vmware-vpx/vcdb.properties file for editing with the following command:
vi /etc/vmware-vpx/vcdb.properties
Change the database password listed here.
Change the password for the vc and postgres database users:
Connect to the vPostgres database for SQL execution by running this command: