PostgreSQLのインストール中にエラーが発生しました:Warning:Problem running post-install step

972 ワード

postgresユーザーを手動で作成し、インストール操作を実行します.具体的な手順は次のとおりです.
  • インストール済みのPostgreSQLを削除し、インストールディレクトリのファイル
  • を削除します.
  • postgresユーザーがいるかどうかを確認し、ある場合はpostgresユーザーを削除します.または、次のスクリプトを実行して
  • を直接削除します.
    net user postgres /delete
    
  • postgresユーザーを作成し、Administratorsおよびpower userグループ
  • に追加
    net user /add postgres 
    
    net localgroup administrators postgres /add
    
    net localgroup "power users" postgres /add
    
  • postgresユーザーを使用してcmd.exe
  • を実行
    runas /use:postgres cmd.exe
    
  • 実装
  • を実行する.
    .\postgresql-12.x.x-windows-x64.exe
    
  • Administratorsユーザグループからpostgresユーザ
  • を除去する.
    net localgroup administrators postgres /delete