Skip to content

建立第一個 Instance

何時用這份文件 你剛跑起 Argus,要把第一個資料庫納管。

前置條件

  • Argus server 已運行(安裝與啟動
  • 你有一個可以用來測試的 Postgres
  • 該 Postgres 上有一個 DB user,至少擁有以下權限:
    • CREATE / CONNECT / USAGE
    • 待會兒會跑變更的對象 schema 上的 DML/DDL 權限

步驟

1. 建立 Project

左側 sidebar → ProjectsNew Project

欄位範例值
Nameplayground
KeyPLAY(縮寫,會出現在 issue 編號前)

2. 新增 Instance

SettingsInstancesAdd Instance

欄位範例值
EnginePostgreSQL
Namedev-postgres
EnvironmentDev
Hostlocalhost
Port5432
Usernamepostgres(或你建的專用 user)
Password

Test Connection,看到綠勾再 Create

3. 把 Database 加進 Project

進入剛建的 instance → Databases 頁 → 找到 playgroundTransfer to Project → 選 playground project。

為什麼要 transfer? Argus 用 project 隔離權限與審批規則。Database 必須屬於某個 project,才能被開 Plan。

驗證

回到 Projects → playground,應該看到 playground 資料庫已在 Databases 清單中。

常見錯誤

症狀原因排除方式
Test Connection 紅叉網路 / 認證 / pg_hba在 Argus server 上 psql 直連看看
看不到資料庫sync 還沒跑等 30 秒或手動 Sync
無法 transfer你的角色沒有 bb.database.transfer請 workspace admin 補權限

下一步

Argus — 公司內部資料庫變更審計平台