Error Installing PostgreSQL

Follow these steps to solve errors when installing Postgresql on Windows 8.1 and Windows 10.

  1. Create a new user account, called postgres
  2. Add the new account to the Administrators and Power Users groups.
  3. Restart the computer. The next step will not work without doing so.
  4. Run a command prompt as the Postgres user, using the command:
    runas /user:postgres cmd.exe
  5. Run the installer from the Postgres command window.
  6. Delete the Postgres user account, as well as the user directory, as it is not required after installation.
Updated on June 16, 2023

Related Articles