小编Sid*_*idC的帖子

Django 无法创建测试数据库权限被拒绝

我正在运行带有 Postgres 9.3、Python 3.0 和 Django 1.7 的 Ubuntu 14.04。当我尝试从 PyDev 调试我的应用程序时,我收到以下信息:

Creating test database for alias 'default'...
Got an error creating the test database: permission denied to create database
Run Code Online (Sandbox Code Playgroud)

奇怪的是,我无法使用最初创建的密码从命令行登录用户 postgres。我昨晚重置了一次,仍然无法这样做。

pg_hba.conf的如下:

# IPv4 local connections:
host    all             all             127.0.0.1/32            md5
# IPv6 local connections:
host    all             all             ::1/128                 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local   replication     postgres                                peer
#host    replication     postgres        127.0.0.1/32            md5
#host    replication     postgres        ::1/128 …
Run Code Online (Sandbox Code Playgroud)

permissions postgresql django 14.04

6
推荐指数
1
解决办法
7669
查看次数

标签 统计

14.04 ×1

django ×1

permissions ×1

postgresql ×1