我已经安装了Django的Bitnami镜像(在Ubuntu上)。
它预先configuration了PostgresSQL,它已经有一个“bitnami”用户定义。
现在我想创build一个新的数据库,但创build失败:
createdb.bin: database creation failed: ERROR: permission denied to create database
Sudo没有帮助…
sudo /opt/bitnami/postgresql/bin/createdb -U bitnami new-db
我不知道是否有一个“postgres”用户(通常是pipe理员用户),或者它的密码是什么…
我错过了什么?
在这个链接中,你可以find一些关于BitNami中PostgreSQL默认configuration的文档。 在虚拟机中, 'postgres'数据库用户的默认密码是'bitnami'