Skip to content

Instantly share code, notes, and snippets.

View tllucero's full-sized avatar

Thomas Lucero tllucero

View GitHub Profile

Keybase proof

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:

@tllucero
tllucero / rvm-1.6.20-reboot-error
Created July 6, 2011 06:20
updated install of rvm 1.6.20 failed on reboot
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
@tllucero
tllucero / Rails-3.0.3-mysql2-mysql-note
Created December 22, 2010 06:52
Rails 3.0.3 mysql2 error
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.