我有与PostgreSQL的姜戈应用程序。
该应用程序具有以下环境变量:
DATABASE_HOST=localhost
DATABASE_USER=admin
DATABASE_PASSWORD=admin以下是psql输出:
postgres=# CREATE USER admin WITH PASSWORD 'admin123';
ERROR: role "admin" already exists
postgres=# select * from USER;
current_user
--------------
postgres
(1 row)
postgres=# GRANT ALL privileges ON DATABASE my_db to admin;
GRANT当我试图从db中获取一些东西时,我得到了ProgrammingError: permission denied for relation app_rangeslot。
所以,问题是:
1)如果用户admin拥有所有权限,为什么会出现权限被拒绝的错误?
2)如果创建了用户admin,为什么看不到?
https://stackoverflow.com/questions/47460329
复制相似问题