尝试连接到本地服务器时出现此错误。我搜索了几个网站,并尝试了一些据说有用的建议。
我正在跑步:
(2016-11-21 revision 56859) [x64-mingw32]
以下是我打开服务器时得到的内容:
=> Booting Puma
=> Rails 5.0.2 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
*** SIGUSR2 not implemented, signal based restart unavailable!
*** SIGUSR1 not implemented, signal based restart unavailable!
*** SIGHUP not implemented, signal based logs reopening unavailable!
Puma starting in single mode...
* Version 3.8.2 (ruby 2.3.3-p222), codename: Sassy Salamander
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://localhost:3000
错误如下所示:
Access denied for user 'rails_user'@'localhost' (using password: YES)
Extracted source (around line #89):
87 socket = socket.to_s unless socket.nil?
88
89 connect user, pass, host, port, database, socket, flags
90 end
91
92 def parse_ssl_mode(mode).
根据我发布的错误日志,是否有不正确的内容?
答案 0 :(得分:0)
拒绝访问用户'rails_user'@'localhost'(使用密码:YES) 如果数据库的密码正确,请检查database.yml