我是使用 Postgres 的新手,我目前正在尝试创建一个新用户。但是,当它要求输入密码时,我输入了我的系统密码,并且身份验证不断失败。
Alex$ createuser user1
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) n
Shall the new role be allowed to create more new roles? (y/n) n
WARNING: password file "/Users/Alex/.pgpass" has group or world access; permissions should be u=rw (0600) or less
Password:
createuser: could not connect to database postgres: FATAL: password authentication failed for user "Alex"
我知道我输入的系统密码正确。我应该使用另一个密码,还是这与世界访问错误有关?