Posted by: wmap | September 23, 2010

ยังไง psql ก็ไม่ผ่านให้…

วันนี้พยายามจะเอา เส้นถนน 1 km เข้าฐานข้อมูลให้ได้ มีแค่ประมาณ 5 หมื่นกว่า record ไม่น่ายาก

ok แก้ปัญหาเรื่องภาษาผ่าน (เก็บไว้ในนี้ หาง่ายหน่อย) gen ออกมาเป็น sql file โอ้ยใหญ่ดีแท้ Load เข้า pgadmin….

หาย!!! หายไปทั้ง pdadmin เลย ว่ะ

ไม่เป็นไรยังมีแผนสอง pipe ไปหา psql เลย อันนี้เอก สอนไว้สบาย

Ident authentication failed for user “postgres” อ้าว ทำไมล่ะ password ก็ของเรา

โง่ อยู่ได้เกือบชั่วโมง user เรา ไม่มีสิทธิ์ login เข้า postgres ต้องให้ postgres เท่านั้น จึงจะเข้า postgres ได้ 5555 งง อยู่นาน

ก็ su – postgres แล้วก็ทำทุกอย่างเหมือนเดิม ระวังเรื่อง user/postgres จะไปอ่านไฟล์ของ user ปรกติไม่ได้นะ

ขอบคุณที่นึกออก!!!

ไม่มีรูปอีกแล้ว….

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Categories

Follow

Get every new post delivered to your Inbox.