8
Rails: FATAL - การรับรองความถูกต้องแบบเพียร์ล้มเหลวสำหรับผู้ใช้ (PG :: Error)
ฉันกำลังพัฒนาบน Ubuntu 11.10 และ RubyMine นี่คือการตั้งค่าการพัฒนาของฉันสำหรับ database.yml ซึ่ง RubyMine สร้างขึ้นสำหรับฉัน development: adapter: postgresql encoding: unicode database: mydb_development pool: 5 username: myuser password: เมื่อฉันพยายามเรียกใช้แอพฉันได้รับข้อผิดพลาดด้านล่างนี้ดูเหมือนว่าฉันยังไม่ได้สร้างผู้ใช้ 'โครงการ' แต่ฉันจะสร้างผู้ใช้และให้ฐานข้อมูลใน postgres ได้อย่างไร ถ้านี่เป็นปัญหาแสดงว่าอะไรคือเครื่องมือที่แนะนำให้ใช้ใน Ubuntu สำหรับงานนี้ หากนี่ไม่ใช่ปัญหากรุณาแนะนำ Exiting /home/sam/.rvm/gems/ruby-1.9.3-p0@project/gems/activerecord-3.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1194:in `initialize': FATAL: Peer authentication failed for user "project" (PG::Error) from /home/sam/.rvm/gems/ruby-1.9.3-p0@project/gems/activerecord-3.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1194:in `new' from /home/sam/.rvm/gems/ruby-1.9.3-p0@project/gems/activerecord-3.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:1194:in `connect' from /home/sam/.rvm/gems/ruby-1.9.3-p0@project/gems/activerecord-3.2.3/lib/active_record/connection_adapters/postgresql_adapter.rb:329:in …