เวลา restore ด้วยคำว่าง pg_restore หรือ psql จะ เจอ Error
แก้ปัญหาด้วยการ เปลี่ยนรหัสผ่าน ของ user และกำหนด รหัสผ่านใส่เข้าไป ทำตามขั้นตอนดังนี้pg_restore: [archiver (db)] connection to database failed: FATAL: Peer authentication failed for user “username”
1. Login เข้าใช้งาน PostgreSQL
โค้ด: เลือกทั้งหมด
sudo -u postgres psql
โค้ด: เลือกทั้งหมด
ALTER USER [username] WITH PASSWORD '[New password]'; -- change password
https://www.mindphp.com/forums/viewtopic ... 15&t=23027