This project is archived and is in readonly mode.

#6728 new
jL

rake aborted! uninitialized constant Mysql::Error

Reported by jL | April 20th, 2011 @ 01:34 PM

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

...

No comments found

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages