I am trying out a phoenix project (source) but having trouble setting up DB.
When I run mix ecto.setup
I am getting this error: (Postgrex.Error) ERROR 42501 (insufficient_privilege): permission denied to create extension "citext...
I am aware there is an almost exact SO thread asking similar question, but that post has no answer.
I went to psql
and ran CREATE EXTENSION citext;
, but I am still having the same issue.
Can someone point me to the right place so I can setup the proper user privilege so I can run mix ecto.setup
successfully?
I am running Phoenix v1.3.2 and elixir 1.6.2.
I also have another phoenix project that I can run mix ecto.setup
successfully. I am listing part of the config/dev.exs below for comparison.
Inside rumbl/config/dev.exs (SUCCESSFUL)
# Configure your database
config :rumbl, Rumbl.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "rumbl_dev",
hostname: "localhost",
pool_size: 10
Inside mango/config/dev.exs (ERROR)
# Configure your database
config :mango, Mango.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "mango_dev",
hostname: "localhost",
pool_size: 10
The repo of the project I am having problem can be found here. Here is another phoenix project I have no problem with, maybe it would help: here