Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

mysql2 gem not being used #61

Open
mlr opened this issue Apr 18, 2011 · 5 comments
Open

mysql2 gem not being used #61

mlr opened this issue Apr 18, 2011 · 5 comments

Comments

@mlr
Copy link

mlr commented Apr 18, 2011

I'm trying to use the mysql2 gem which was discussed here and support was added with this commit.

When trying to pushing my application using webbynode push, the database.yml file generated does not use adapter: mysql2, but rather adapter: mysql

I also get these error messages:

remote:   -----------------------------------------------------
remote:     There was an error migrating database:
remote: 
remote:      rake aborted!
remote:      !!! Missing the mysql2 gem. Add it to your Gemfile: gem 'mysql2'
remote:      
remote:      (See full trace by running task with --trace)
remote:      (in /var/apps/kcshrm)
remote: 
remote:     Please fix this problem and run wn push again.
remote:   -----------------------------------------------------

Am I missing something here? My Gemfile already contains gem 'mysql2' Is anyone else having this problem? This is my Gemfile:

source 'http://rubygems.org'

gem 'rails', '3.0.6'
gem 'mysql2'
@romul
Copy link

romul commented Apr 24, 2011

I have the same issue.

source 'http://rubygems.org'

gem 'rails', '3.0.5'
gem 'mysql2'

@jimjeffers
Copy link

I'm having the same problem! Has anyone resolved this?

source 'http://rubygems.org'

gem 'rails', '3.0.7'
gem 'mysql2'

@jimjeffers
Copy link

I found the problem. The database.yml is incorrectly using mysql instead of mysql2. You need to ssh into your webby and update the database.yml to use 'mysql2' instead of 'mysql' as the adapter.

@msanterre
Copy link

I'm also getting this problem. Will this be fixed soon?

@CoffeeAndCode
Copy link

any news?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants