Featured image of post PostgreSQL pgAdmin重置密碼

PostgreSQL pgAdmin重置密碼

  1. 將 pg_hba.conf 文件中所有行的 METHOD 從 scram-sha-256 更改為 trust
  2. 將 Postgres 安裝的 bin 文件夾添加到路徑中,如果沒有的話
  3. 打開命令提示符並輸入psql -U postgres 這裡不會要求你輸入密碼。
  4. 輸入\password postgres
  5. 選擇並確認您的密碼
  6. 將 pg_hba.conf 恢復為原始狀態
使用 Hugo 建立
主題 StackJimmy 設計