# Upgrading pgAdmin 4 For PostgreSQL 12 (Windows 10)

Hello Fellow Codenewbies 👋,

## Prologue
We just installed PostgreSQL 12 on our Windows 10.
<br>
Now we can use pgAdmin 4 – the graphical tool with the installer package for managing and developing our database.

## Starting pgAdmin 4
1.	Click the start menu
2.	Go to PostgreSQL
3.	Select and click pgAdmin4

It then asks us to create a master password. 
<br>
The master password is required to unlock saved passwords and reconnect to the database server(s). 
<br>
Create the password, and then we're good to go.

## Upgrading pgAdmin 4 

I got the case where the PostgreSQL 12 installer comes with pgAdmin 4 version *4.21* while the latest version is ***4.23***. 

![pgAdmin 4 version message](https://dev-to-uploads.s3.amazonaws.com/i/83kmr0urcwzp3oo61kvf.jpg)

In this post, we will upgrade it to the latest version.

## Installation Steps
* Go to uninstall PostgreSQL. 

    We can find the uninstall application by going to the directory where PostgreSQL 12 is installed on our machine.

![PostgreSQL directory in local storage](https://dev-to-uploads.s3.amazonaws.com/i/ne9jgfiw1wtsue8yd0jb.jpg)
<br>
* Select uninstall "individual components" and select **only** the pgAdmin 4 to uninstall the older version.

![Uninstall Dialog](https://dev-to-uploads.s3.amazonaws.com/i/dgpxo158zzds4n3xete5.jpg)
<br> 
* Download the latest version of pgAdmin 4 [here](https://www.pgadmin.org/download/pgadmin-4-windows/) and start the installation.
  
    It will first prompt us to a dialog where we can select the installation folder.
<br>
By default, it will offer us to install pgAdmin 4 in C:\Program Files (x86).

![Installation Dialog](https://dev-to-uploads.s3.amazonaws.com/i/7997zrklgvpzfmngymg5.jpg)

We want to install it in the same directory as our PostgreSQL 12 to replace the older version.

* Browse and select the directory where PostgreSQL 12 is installed
* Select the version subfolder to install pgAdmin 4

![Installation Dialog](https://dev-to-uploads.s3.amazonaws.com/i/oecw18h9pdk2agc3ivy8.jpg)

* Click next to create pgAdmin 4 shortcuts in Start Menu

![Installation Dialog](https://dev-to-uploads.s3.amazonaws.com/i/qwlq3egs2cygcmlt1ibk.jpg)

* Select the PostgreSQL 12 folder, then click OK and install

![Installation Dialog](https://dev-to-uploads.s3.amazonaws.com/i/ugjku19vb1j588e52pgw.jpg)

And there, now we have the latest version of pgAdmin 4 😃

---

Thank you for reading!
<br>
Last, you can find me on [Twitter](https://twitter.com/@AdiatiAyu). Let's connect! 😊
