django - OperationFailure: database error: not authorized for query on database.system.namespaces -
i beginner lift django mongodb on heroku [ addon : mongolab ].
heroku run python manage.py syncdb
running python manage.py syncdb
attached terminal... up, run.2332 creating tables ...
operationfailure: database error: not authorized query on database.system.namespaces consider editing privileges on basis of data mongo
.
>use admin >db.adduser({ user: "myadmin", pwd: "1234", roles: ["useradminanydatabase"] })
but get:
error: couldn't add user: not authorized on admin execute command
thanks in advance.
heroku postgres not allow user creation. you'll want use connection string provided in database_url
. actions creating/dropping db's , creating users prohibited.
Comments
Post a Comment