Answers for "psql create user set password"

10

alter user password postgres

ALTER USER user_name WITH PASSWORD 'new_password';
Posted by: Guest on March-12-2021
0

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>>';"
Posted by: Guest on April-14-2021

Browse Popular Code Answers by Language