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