使用ROR错误启动PostgreSQL
我正在尝试使用PostgreSQL将Ruby在Rails应用程序上进行工作,但无法弄清楚问题是什么。我正在与另一个人一起在此应用程序上工作,他们正在MacOS上,并且我正在Windows 10上。我们在跨平台工作会是一个问题吗?据我所知,一切都安装了,但仍然无法正常工作。这是我遇到的一些错误。
- sudo服务postgresql启动
- 不存在PostgreSQL群集;请参阅“ Man PG_CreateCluster”
- Rails DB:设置 /home/blah/.rbenv/versions/2.7.2/bin/ruby:警告:以\ r结尾的Shebang线可能会引起问题 致命:用户“ appuser”的密码身份验证失败 无法创建“ myApp_development”数据库。请检查您的配置。 铁轨流产了! PG :: ConnectionBad:致命:用户“ Appuser”的密码身份验证失败 /mnt/c/users/blah/desktop/project/myapp/bin/rails:9:in
< top(必需)>' /mnt/c/users/blah/desktop/project/myapp/bin/spring:15:in
< top(必需)>' bin/rails:3:in加载'bin/rails:3:in
' 任务:top => db:设置=> DB:架构:load_if_ruby => DB:创建 (请参阅通过使用-Trace运行任务的完整跟踪)
我知道我的密码正确的事实100%。我什至确保在pgadmin中更改它,以防万一我正在误解。我使用Postgres帐户,主密码和此用户密码的相同密码重新安装了PostgreSQL,但它仍然不起作用。
- sudo ps aux | Grep Postgres [sudo]布拉的密码: blah 228 0.3 0.0 16208 1284 TTY1 S 13:05 0:00 GREP -COLOR = Auto Postgres,
很感谢您在开始此工作的任何帮助。谢谢你!!
I'm trying to get my ruby on rails application to work using PostgreSQL but cannot figure out what the problem is. I'm working on this app with another person, they're on MacOS and I'm on Windows 10. Would us working cross-platform be a problem? As far as I know, everything is installed but it's still not working. Here are some of the errors I get.
- sudo service postgresql start
- No PostgreSQL clusters exist; see "man pg_createcluster"
- rails db:setup
/home/blah/.rbenv/versions/2.7.2/bin/ruby: warning: shebang line ending with \r may cause problems
FATAL: password authentication failed for user "AppUser"
Couldn't create 'myapp_development' database. Please check your configuration.
rails aborted!
PG::ConnectionBad: FATAL: password authentication failed for user "AppUser"
/mnt/c/users/blah/desktop/project/myapp/bin/rails:9:in<top (required)>' /mnt/c/users/blah/desktop/project/myapp/bin/spring:15:in
<top (required)>'
bin/rails:3:inload' bin/rails:3:in
'
Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create
(See full trace by running task with --trace)
I know 100% for a fact that my password is correct. I even made sure to change it in pgadmin in case I was misremembering. I reinstalled postgresql with the same password for the postgres account, master password, and this user password and it still doesn't work.
- sudo ps aux | grep postgres
[sudo] password for blah:
blah 228 0.3 0.0 16208 1284 tty1 S 13:05 0:00 grep --color=auto postgres
I would appreciate any help in getting this started. Thank you!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论