Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Permission denied when trying to create database django [closed]

I'm trying to create a database for a django project and I'm getting the following error:

(blog-venv)vagrant@precise64:/vagrant/django_projects/microblog$ createdb microblog createdb: database creation failed: ERROR: permission denied to create database

I'm working in a vagrant/virtualbox environment.

Please help.

thanks.

like image 729
dobleV Avatar asked Dec 12 '22 18:12

dobleV


1 Answers

solved the issue by making sure I had superuser permissions.

=> ALTER USER myusername CREATEDB

like image 103
dobleV Avatar answered May 20 '23 10:05

dobleV