1.terminal change user to postgres
$ sudo su - postgres2.use psql from postgres
$ psql3.set password
postgres=# ALTER USER postgres PASSWORD 'new password';
4.quit psql
postgres=# \qทำเว็บนี้ขึ้นมาไว้บันทึกโค้ด วิธีแก้ปัญหา และเรื่องที่เจอระหว่างทาง เผื่อวันหลังต้องย้อนกลับมาอ่านอีกครั้ง
1.terminal change user to postgres
$ sudo su - postgres2.use psql from postgres
$ psql3.set password
postgres=# ALTER USER postgres PASSWORD 'new password';
4.quit psql
postgres=# \q