Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 无法混合EXTO.create。多重错误_Postgresql_Elixir_Phoenix Framework_Ecto_Elixir Mix - Fatal编程技术网

Postgresql 无法混合EXTO.create。多重错误

Postgresql 无法混合EXTO.create。多重错误,postgresql,elixir,phoenix-framework,ecto,elixir-mix,Postgresql,Elixir,Phoenix Framework,Ecto,Elixir Mix,尝试运行mix-exto.create时,出现以下错误: .Repo无法创建:tcp连接:连接被拒绝-:EconReconfused .Repo无法创建:致命(无效的\u授权\u规范):角色“postgres”不存在 .Repo无法创建:致命(无效的\u授权\u规范):不允许角色“postgres”登录 为了正确设置Phoenix,Postgres必须满足哪些条件?为了运行mix EXTO。创建您需要一系列条件: 博士后必须启动并运行 Postgres必须有一个用户Postgres,其密码为Po

尝试运行
mix-exto.create
时,出现以下错误:

  • .Repo无法创建:tcp连接:连接被拒绝-:EconReconfused
  • .Repo无法创建:致命(无效的\u授权\u规范):角色“postgres”不存在
  • .Repo无法创建:致命(无效的\u授权\u规范):不允许角色“postgres”登录

  • 为了正确设置Phoenix,Postgres必须满足哪些条件?

    为了运行
    mix EXTO。创建
    您需要一系列条件:

  • 博士后必须启动并运行

  • Postgres必须有一个用户
    Postgres
    ,其密码为
    Postgres

  • postgres
    用户必须具有登录创建数据库的权限

  • 一、 例如,在本地运行Postgres,但缺少
    Postgres
    用户

    因此,在内部,我必须使用以下命令:

    # CREATE ROLE postgres LOGIN CREATEDB PASSWORD 'postgres';
    
    然后它成功了

    这是我的荣幸

  • 开始你的postgres:(假设你正在使用mac)

    pg_ctl-D/usr/local/var/postgres-l/usr/local/var/postgres/server.log启动

  • 然后,您可以在cofig/dev.exs中更改底部的数据库配置,以使用您的帐户和能够创建数据库的角色。

    Nice!另一种方式:)尽管问题中的错误消息特别提到了postgres角色