Mengganti Password Default Postgresql

  Umum

masuk ke user postgrees

sudo su - postgres


psql

ALTER USER postgres PASSWORD '1234';

Membuat User

 CREATE USER mfahri WITH PASSWORD ‘123456’;
GRANT ALL PRIVILEGES ON DATABASE <db_name> to mfahri;

LEAVE A COMMENT