Rails 4 中 PostgreSQL 服务器的默认用户名/密码是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32723995/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What's the default username/password for a PostgreSQL server in Rails 4?
提问by HymanHasaKeyboard
I've looked all over the internet and nobody seems to have this answer.
我查遍了整个互联网,似乎没有人有这个答案。
I've never created a user, am I supposed to?
我从来没有创建过用户,我应该创建吗?
"root" and "password" throws up "password authentication failed" and leaving the fields blank throws up "no password supplied"
“root”和“password”会提示“密码验证失败”,将字段留空会提示“未提供密码”
回答by Cyprien Aubry
Did you try with postgres
as username and password ?
您是否尝试使用postgres
用户名和密码?
回答by Vision Hive
If you're using Chocolatey, the default user is postgres or postgresql and default password is Postgres1234
如果你使用 Chocolatey,默认用户是 postgres 或 postgresql,默认密码是 Postgres1234