Set up PostgreSQL on WSL2 and Access with pgAdmin on Windows

Chloe Sun
4 min readJan 6, 2021

A super detailed beginner-friendly walk-through

Install PostgreSQL on WSL 2 and Access it through pgAdmin on Windows

Why install PostgreSQL on WSL 2?

Simply because the installation of PostgreSQL on Windows is kind of a pain, and I also use WSL 2 for other development tasks. You can visit my previous post on how to set up WSL 2.

--

--

Chloe Sun

<Architect | Software Developer | Metaverse Enthusiast> Discord: Architecting the Metaverse https://discord.com/invite/mZjcEbgyEH