Skip to content

The database for Hello.Repo couldn't be created: ERROR 42501 (insufficient_privilege): permission denied to create database #2435

@TangMonk

Description

@TangMonk

Environment

  • Elixir version (elixir -v): 1.4.4
  • Phoenix version (mix deps): 1.3
  • Operating system: OS X 10.11

I am following official guides to create a phoenix project, when I running following commands:

$ mix ecto.create
** (Mix) The database for Hello.Repo couldn't be created: ERROR 42501 (insufficient_privilege): permission denied to create database

it throw the error to me, But I check the files permissions, it is fine

$ ls -al
total 40
drwxr-xr-x  13 tangmonk  staff   442 Aug  8 10:14 .
drwxr-xr-x   3 tangmonk  staff   102 Aug  8 10:13 ..
-rw-r--r--   1 tangmonk  staff   617 Aug  8 10:13 .gitignore
-rw-r--r--   1 tangmonk  staff   755 Aug  8 10:13 README.md
drwxr-xr-x   3 tangmonk  staff   102 Aug  8 10:14 _build
drwxr-xr-x   9 tangmonk  staff   306 Aug  8 10:15 assets
drwxr-xr-x   7 tangmonk  staff   238 Aug  8 10:13 config
drwxr-xr-x  21 tangmonk  staff   714 Aug  8 10:14 deps
drwxr-xr-x   6 tangmonk  staff   204 Aug  8 10:13 lib
-rw-r--r--   1 tangmonk  staff  1580 Aug  8 10:13 mix.exs
-rw-r--r--   1 tangmonk  staff  4472 Aug  8 10:14 mix.lock
drwxr-xr-x   5 tangmonk  staff   170 Aug  8 10:15 priv
drwxr-xr-x   5 tangmonk  staff   170 Aug  8 10:13 test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions