Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres create user with superuser privileges

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 #user #superuser #privileges
ADD COMMENT
Topic
Name
1+2 =