Skip to content


rake aborted! uninitialized constant Mysql::Error #1046

lighthouse-import opened this Issue · 1 comment

2 participants


Imported from Lighthouse. Original ticket at:
Created by jL - 2011-04-20 12:34:57 UTC

Whenever I try running any database related rake task "db:create", I got this error "rake aborted! uninitialized constant Mysql::Error"

from 'databases.rake' line 64

error_class = config['adapter'] =~ /mysql2/ ? Mysql2::Error : Mysql::Error

when I commented that line out everything worked just fine.

the database got created, migrations worked fine and all.

I used NetBeans 6.9.1 in windows7
the db gems were:
jdbc-mysql, activerecord-jdbc-adapter, activerecord-jdbcmysql-adapter


  adapter: jdbcmysql
  encoding: utf8
  reconnect: false
  database: myapp_development
  pool: 5
  username: root
  password: 12345
  host: localhost

Ruby on Rails member

It's fixed in master.


We can close it.!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.