MySQL 不会连接到使用 Rubber 部署的 EC2 [英] MySQL won't connect on EC2 deploying with Rubber

查看:41
本文介绍了MySQL 不会连接到使用 Rubber 部署的 EC2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Rubber 部署 Rails 应用程序,但在连接到 MySQL 时遇到问题.我是否必须在 EC2 上手动设置 MySQL 或者 Rubber 已经这样做了?虽然这并不是很有帮助,但这是运行 rake 时的日志输出:

I'm using rubber to deploy a rails application and am having trouble connecting to MySQL. Do I have to manually setup MySQL on EC2 or should Rubber have already had done that? While this isn't all that helpful, here is log output when rake is ran:

 ** [out :: db01.memepluspl.us] rake aborted!
 ** [out :: db01.memepluspl.us] 
 ** [out :: db01.memepluspl.us] Access denied for user ''@'db01.memepluspl.us' to database 'meme_plus_plus_production'
 ** [out :: db01.memepluspl.us] 
 ** [out :: db01.memepluspl.us] 
 ** [out :: db01.memepluspl.us] Tasks: TOP => db:migrate => environment

推荐答案

就我而言,我在 Rubber.yml 中输入的应用程序名称实际上与实际应用程序名称不同(项目文件保留了占位符名称)...

in my case, the app name I had input in rubber.yml was actually different then the actual app name(the project files retains placeholder name)...

我通过 ssh 进入实例,寻找 current/cat config/database.yml然后只是尝试运行连接命令 rake 会尝试从那里的东西运行并且错误就在那里,所以我建议尝试更好地调试正在发生的事情

I ssh'd into the instance, looked for current/ and cat config/database.yml then just tried running the connect command rake would try to run from the stuff there and the error was there, so I'd suggest trying to better debug what's going on

我想我必须更改rubber-mysql.yml 配置...我现在正在重新创建暂存的东西,我认为它至少应该通过这个问题.. gl

I guessed I had to change the rubber-mysql.yml configs... Im recreating the staging stuff now, I think it should at least pass through this issue.. gl

这篇关于MySQL 不会连接到使用 Rubber 部署的 EC2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆