ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How-to Connect to vCenter 6 vPostgress Database with PgAdmin

By Vladan SEGET | Last Updated: January 4, 2020

Shares

vCenter Server 6.0 is using by default the internal vPostgress Database. If you chose this option during the installation over an SQL server installation you basically lose the possibility to manage this DB, unless you install some vPostgress management tool. One of those tools is PgAdmin and in this post we will take a look on How-to Connect to vCenter 6 vPostgress Database with PgAdmin.

First thing to do is to go to the PgAdmin website and download the version you want. They have Linux, Windows or Mac OSX versions available for download. In this guide we'll use the Windows version as I'm managing the lab vCenter from Windows box.

I used the default installation setup.

How-to use PgAdmin for vCenter 6 and vPostgres Db

But then I run into an error on the system where I was installing the PgAdmin tool. The system was actually the vCenter server itself, which is Windows server 2012 R2 (x64). It seems that OOB the x64 systems throws and error on this, and I saw a thread where the user just took the 1.18 version instead.

That's what I done too in order to continue…

How-to use PgAdmin for vCenter 6 and vPostgres Db

Now we have a PgAdmin installed, but how to connect?

We have no error with 1.18 release of PgAdmin. Let's move on…

Step 1: Edit a configuration file caled vcdb.properties located in this directory

C:ProgramDataVMwarevCenterServercfgvmware-vpxvcdb.properties

It should look like this. Copy the password to the clipboard…

vPostgres DB properties PgAdmin

Step 2:  Connect to the Database with PgAdmin

Note that you'll have to first change another config file in order to accept TCP/IP requests from your management machine. (Source: PgAdmin.org Documentation) To do this just edit

pg_hba.conf file located at this directory:

C:ProgramDataVMwarevCenterServerdatavpostgrespg_hba.conf

You can add a line there in this format

host       all       all       your_ip/24       md5

Connect to vCenter 6 vPostgres Database with PgAdmin

Note that you'll need to restart the postgres Windows service to validate this config file….

Then go back to the PgAdmin UI and enter the user name (vc) and password you previously copied from the vcdb.properties file…. like this

PgAdmin Connection to vCenter 6 Database vPostgres

And then hit the OK button to connect to the vCenter DB. You can expand the individual catalogs, schemas and tables or views the same way you would do it through SQL server management studio….

How to connect to vCenter DB vPostgres via PgAdmin

This is it. Now I'm not a fan doing some manual edits, but I usually like to have a GUI utility to be able to browse the DB tables, functions and stored procedures just in case. If there is a problem I usually tempt to restore from recent backup (if available) first. You might want to check another post I've done where you'll see How to backup (and restore) vCenter database on Windows with a VMware script.

With that said, check also latest How-to, news and videos about vSphere 6 on a dedicated vSphere 6 page here.

 

Shares
Vote !

| Filed Under: Server Virtualization Tagged With: Connect to vCenter 6 vPostgress Database with PgAdmin

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Dejan says

    May 20, 2015 at 2:34 pm

    Hi Vladan

    I am using vCenter applianace almost from the first release. OK, there were some bugs (database has used all space) but after I opened case, they efficently release new patch to address this situations.

    If you stick to “normal” operations, with normal number of hosts, no FT etc, I do not see why would I use classical vCenter.

    I am asking, what is your experience with vCenter appliance and why do you hold on to classical vCenter if we exclude the fact, that it is OK to stay in touch with new technology.

    Regards, Dejan

    • Vladan SEGET says

      May 20, 2015 at 4:05 pm

      While in some cases the client do not mind having a vCenter as VCSA, in majority cases they (still) prefer Windows. They are use to have GUI, and additionally they can also install other stuff (even If I don’t recommend that).

      As for myself, in my lab I have both.

      regards,
      Vladan

  2. Rafael Ferreira Sousa says

    February 1, 2016 at 10:08 pm

    I am a great admirer of your work.

    But recently, seeking in his articles ask you a question? It is possible to migrate the vCenter database that is in Postgres to SQL Server?

    When former manager set up our vCenter he made the installation in embedded mode.

    Today acquired SQL Server 2012, after the bank always corrupt when the host had to be restarted.

  3. stephen says

    March 20, 2016 at 11:04 pm

    I read this article because I have recently removed a Operations Manager with out un registering now its permanent stuck in my web client under related objects, and when I install a new one 2 show there even though the 1st one is a dead link. I was hoping I could find this dead link in the database to remove. All other tutorials only specify how to remove broken extensions but in this case there is no extension. How do you clean this out of the web client?

  4. Wojciech Marusiak says

    April 5, 2016 at 6:11 pm

    Very useful article Vladan.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI
  • Veeam VHR ISO v2 – 2025 Download and Install
  • Deployment OVA and Installation of Nakivo Backup and Replication for VMware
  • XCP-NG FREE Hypervisor and XO Lite to deploy XOA

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in