Skip to content

Instantly share code, notes, and snippets.

@secretorange
Created October 1, 2020 12:27
Show Gist options
  • Save secretorange/0adfde22473f4e731b8dfb2a1c0ff06f to your computer and use it in GitHub Desktop.
Save secretorange/0adfde22473f4e731b8dfb2a1c0ff06f to your computer and use it in GitHub Desktop.
PostgreSQL Snippits
#Issues installing on windows and running post install script
First, setup postgres user:
Run: net user postgres dbpasswordhere /add
Run: compmgmt.msc -> Click Local Users and Groups -> Users -> postgres ->Member of -> Add… -> Administrators -> OK
Run: runas /user:postgres cmd.exe -> cd \ -> postgresql-install.exe -> installed successfully without errors. Checked data folder and confirmed files created successfully.
Run: compmgmt.msc -> Local Users and Groups -> Users -> postgres -> Member of -> Administrators -> Remove
Run: compmgmt.msc -> Local Users and Groups -> Users -> postgres -> Member of -> Add… -> Power Users -> OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment