0
我已经通过brew安装了postgres。但是,运行rake db:create
后,我得到错误Postgres不会创建角色
角色“posgres”不存在
我不能运行psql
为我的用户不存在,这是合乎逻辑的作用,但我无法登录与-u postgres无论。 有什么建议,如何创建postgres用户?
我已经通过brew安装了postgres。但是,运行rake db:create
后,我得到错误Postgres不会创建角色
角色“posgres”不存在
我不能运行psql
为我的用户不存在,这是合乎逻辑的作用,但我无法登录与-u postgres无论。 有什么建议,如何创建postgres用户?
这似乎是安装后服务没有运行/打开。
文档参考: https://www.postgresql.org/docs/current/static/server-start.html
然后,执行在initdb/[数据位置]
然后,你将需要须藤到postgres用户(服务用户)发出命令到数据库。
你似乎有错字! – plaes
[Rails和PostgreSQL:角色postgres不存在]的可能重复(http://stackoverflow.com/questions/7863770/rails-and-postgresql-role-postgres-does-not-exist) – plaes