pgadmin: getting “DETAIL: User does not have CONNECT privilege.” error
问题 I’m using pgAdmin III on Mac Yosemite. I created a role, “discount”, and created a database “discount”. In the pgadmin tool, how do I give the user “discount” connect privileges (and table read/write privileges) to the database “discount”? Currently, when I try and login at a command line I get this error davea$ psql -h localhost -d discount -U discount Password for user discount: psql: FATAL: permission denied for database "discount" DETAIL: User does not have CONNECT privilege. 回答1: