使用普用户创建数据库时候
PG::Error: ERROR: permission denied to create database
解决方式:
使用postgres 登录
sudo -u postgres psql
postgres=# ALTER ROLE xxxx CREATEROLE CREATEDB;
xxxx: 普通用户名称
赋予超级权限
ALTER ROLE xxxx CREATEROLE SUPERUSER;
[url]http://www.postgresql.org/docs/9.2/static/sql-alterrole.html[/url]
PG::Error: ERROR: permission denied to create database
解决方式:
使用postgres 登录
sudo -u postgres psql
postgres=# ALTER ROLE xxxx CREATEROLE CREATEDB;
xxxx: 普通用户名称
赋予超级权限
ALTER ROLE xxxx CREATEROLE SUPERUSER;
[url]http://www.postgresql.org/docs/9.2/static/sql-alterrole.html[/url]
本文介绍了解决普通用户在PostgreSQL中创建数据库时遇到的权限拒绝问题的方法。通过使用超级用户登录并修改普通用户的权限设置来实现。
2311

被折叠的 条评论
为什么被折叠?



