Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

postgres create admin user with password

sudo -u postgres createuser -s -i -d -r -l -w <<username>>
sudo -u postgres psql -c "ALTER ROLE <<username>> WITH PASSWORD '<<password>>';"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgres #create #admin #user #password
ADD COMMENT
Topic
Name
3+9 =