createuser:无法连接到数据库postgres:

时间:2017-12-09 11:17:42

标签: macos postgresql

我正在尝试使用以下命令在Mac中的PostgreSQL中创建用户         $startTijd = time(); $teller = 0; while($startTijd == time()){ echo 'Iteratie: ' . $teller . '<br>'; $teller++; }
然后它提示
        createuser -P project_user
        Enter password for new role:
        Enter it again:

我输入了三次project_user的新密码,但验证失败,出现以下错误     Password:

我能够使用以下命令和密码作为'postgres'进入psql终端         createuser: could not connect to database postgres: FATAL: password authentication failed for user <my_mac_user_name>.
        sudo -u postgres psql显示用户project_user 但尝试使用以下命令创建数据库时出现相同的错误         \du

0 个答案:

没有答案
相关问题