2011-06-05 156 views
1

我试图将我的本地开发数据库推向与heroku heroku db:push,但它没有连接。任何人都知道问题是什么?heroku db:push - MySQL服务器已经消失

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://[email protected]/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 
+0

我面对过一次,我不得不重新定义有关我的数据库使用命令行的一切 – apneadiving 2011-06-05 21:29:51

回答

0

好吧终于想通了,我没有在我目前的RVM gemsite mysql的宝石。

这解决了我的问题。

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