Để cài PostgreSQL trên Windows
Vào trang chính thức:
Vào link: https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
PostgreSQL Downloads Chọn Download the installer → thường sẽ chuyển sang bộ cài của EDB: EDB Installer Download Tải bản mới nhất cho Windows.
Mở file .exe, bấm Next liên tục. Các bước quan trọng: Chọn thành phần Nên giữ mặc định: PostgreSQL Server pgAdmin (giao diện quản lý) Command Line Tools
Đặt mật khẩu
Sẽ có bước đặt password cho user mặc định
Trong lúc cài PostgreSQL, nhớ tick:
✅ PostgreSQL Server
✅ pgAdmin 4
✅ Command Line Tools
Sau khi cài xong, mở pgAdmin bạn sẽ có giao diện kiểu:
Servers
Databases
Schemas
Tables
Có thể:
tạo database mới
tạo table bằng chuột
thêm cột
sửa kiểu dữ liệu
chạy SQL
Chuột phải Tables → Create → Table
Tìm kiếm:
Hướng dẫn cài đặt PostgreSQL