Alexandre Calaçablog.alexandrecalaca.com·May 13, 2024How to set a password for a user in PostgresqlOpen a terminal Connect to Postgresql sudo -u postgres psql postgres is the name of the user. Change the password ALTER USER postgres WITH PASSWORD 'postgres'; Output 'postgres' is the password. Test the new password psql -U postgres -h localh...10 likesPostgreSQLAdd a thoughtful commentNo comments yetBe the first to start the conversation.