$ rake db:migrate RAILS_ENV=production
我一直收到以下错误,但我知道访问凭据是正确的。
rake aborted!
Access denied for user 'username'@'156.LocalIP' (using password: YES)
(See full trace by running task with --trace)
(in C:/Users/username/Desktop/MySite)
我也在尝试访问eHost cpanel mysql数据库。我有点期待'用户名' @' remoteIP'而不是本地IP'。
我在我的database.yml中使用以下内容进行制作。
production:
adapter: mysql
pool: 5
database: "felixDB"
username: "username"
password: "pw"
host: "108.hostIP"
port: 3306
看起来其他人有类似的问题,尝试使用解决方案,但没有任何作用。
有关我可能做错的任何线索?如果需要更多信息,请提出问题。