heroku db:push - MySQL服务器已经消失了

时间:2011-06-05 20:39:11

标签: mysql ruby-on-rails heroku

我正在尝试使用heroku db:push将本地开发数据库推送到heroku但它没有连接。有谁知道问题是什么?

http://devcenter.heroku.com/articles/taps#import_push_to_heroku

$ heroku db:push --confirm spanish-day-111
Loaded Taps v0.3.23
Auto-detected local database: mysql://root@localhost/blog_development?encoding=utf8
Warning: Data in the app 'spanish-day-111' will be overwritten and will not be recoverable.
Failed to connect to database:
  Sequel::DatabaseConnectionError -> Mysql::ClientError::ServerGoneError: The MySQL server has gone away

1 个答案:

答案 0 :(得分:0)

好吧终于想通了我当前的rvm gemsite中没有mysql gem。

这解决了我的问题。

env ARCHFLAGS="-arch x86_64" gem install --no-rdoc --no-ri mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config