rake aborted! uninitialized constant Mysql::Error #1046

Closed
lighthouse-import opened this Issue May 16, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@lighthouse-import

Imported from Lighthouse. Original ticket at: http://rails.lighthouseapp.com/projects/8994/tickets/6728
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

database.yml

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

...
@arunagw

This comment has been minimized.

Show comment
Hide comment
@arunagw

arunagw May 21, 2011

Member

It's fixed in master.

6464f7b

We can close it.!

Member

arunagw commented May 21, 2011

It's fixed in master.

6464f7b

We can close it.!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment