I hereby claim:
- I am tllucero on github.
- I am tllucero (https://keybase.io/tllucero) on keybase.
- I have a public key ASAsxqAkfBQzBBo2aG-N2P2v911VvsDAzGw7UsSKpGQthQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from root: | |
# rvm get latest | |
... | |
# rvm --version | |
rvm 1.6.20 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/] | |
$ type rvm | head -1 | |
rvm is a function | |
reboot - after login instead of standard gnu screen |
I'm getting this error. I am using the mysql2 adapter, both installed in rvm and in database.yaml. Verified that mysql2 is installed in the correct rvm directory. Verified that I can connect to and access the MySQL database using rails console - therefore, user name and password are correct in database.yaml | |
/usr/local/rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.3/lib/active_record/connection_adapters/mysql_adapter.rb:22:in `rescue in mysql_connection': !!! Missing the mysql2 gem. Add it to your Gemfile: gem 'mysql2' (RuntimeError) | |
Solved. Must install both the mysql and mysql2 as the current version of mysql_adapter.rb has require 'mysql' hardcoded on line 22. Changing that to require 'mysql2' doesn't solve the issue. Rails console accesses the MySQL database without hitting that code. |