# Koneksi PostgreSQL ke GUI DBeaver di Windows

Cara menghubungkan postgre ke aplikasi interface database (contoh: DBeaver)

<figure><img src="https://3397141630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVUQUm1GVUT3pDnRHmDRU%2Fuploads%2FD8xTaT7ZEKNXXgVeSxxl%2Fimage.png?alt=media&#x26;token=d127858e-17bc-4310-8d44-072a3a700876" alt=""><figcaption></figcaption></figure>

DBeaver adalah alat basis data multi-platform gratis untuk pengembang, administrator basis data, analis, dan semua orang yang perlu bekerja dengan basis data. Mendukung semua database populer: MySQL, PostgreSQL, SQLite, Oracle, DB2, SQL Server, Sybase, MS Access, Teradata, Firebird, Apache Hive, Phoenix, Presto, dll. *(Sumber:* [*https://dbeaver.io/*](https://dbeaver.io/)*)*

Disini saya menggunakan docker image sebagai penampung environment postgres. Langkah pertama;

**1. Install Docker**

<https://docs.docker.com/desktop/windows/install/>

**2. Install WSL (Windows Subsystem for Linux)**

Buka WSL lalu pastekan kode berikut

```
docker pull postgres:latest
```

kemudian kode berikut untuk membuat container

```
docker run -d -e POSTGRES_USER={user} -e POSTGRES_PASSWORD={password} --name postgres -p 5432:5432 --restart=always postgres
```

**3. Install DBeaver**

<https://dbeaver.io/>

**4. Configuration DBeaver**

Ikuti petunjuk berikut

<figure><img src="https://3397141630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVUQUm1GVUT3pDnRHmDRU%2Fuploads%2FuSK5VArUwpuZI1XooJco%2Fimage.png?alt=media&#x26;token=aad54f48-76bb-45f6-b576-efaa30c61147" alt=""><figcaption></figcaption></figure>

Kemudian sesuaikan koneksi settingan dengan container yang tadi sudah kamu buat

<figure><img src="https://3397141630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVUQUm1GVUT3pDnRHmDRU%2Fuploads%2F3zDIxG2bLeMzKfYPxDaB%2Fimage.png?alt=media&#x26;token=decf65cb-dd32-426f-b343-6ef1100a5624" alt=""><figcaption></figcaption></figure>

Selesai..&#x20;

Baca juga: [*Tidak bisa terhubung dengan database postgre*](https://rysxa.gitbook.io/s/coding/codeigniter/tidak-bisa-terhubung-dengan-database-postgre)

Gomawo^
