ERROR: permission denied for relation admin
我用bingo用户登录数据库blog,报错permission denied for relation admin。
原因:bingo没有blog数据库操作的权限。
授权:(注意:需要进入到要操作的数据库里进行操作)
postgres=# \c blog
You are now connected to database "blog" as user "postgres".
blog=# grant all on database blog to bingo;
GRANT
blog=# grant all privileges on all tables in schema public to bingo;
GRANT