alter user command to change db password in psql code example Example: create password for user in postgres ALTER USER davide WITH PASSWORD 'hu8jmn3';