2016-09-30 68 views
0

我已经通过brew安装了postgres。但是,运行rake db:create后,我得到错误Postgres不会创建角色

角色“posgres”不存在

我不能运行psql为我的用户不存在,这是合乎逻辑的作用,但我无法登录与-u postgres无论。 有什么建议,如何创建postgres用户?

+1

你似乎有错字! – plaes

+1

[Rails和PostgreSQL:角色postgres不存在]的可能重复(http://stackoverflow.com/questions/7863770/rails-and-postgresql-role-postgres-does-not-exist) – plaes

回答