Uninitialized constant Mysql when rake db:migrate

Hello,

I’ve been trying to create another model in typo,here comes the command
I used.
C:\Java\workspace\typo-4.0.3>ruby script\generate model travel_loc
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/travel_loc.rb
create test/unit/travel_loc_test.rb
create test/fixtures/travel_locs.yml
exists db/migrate
create db/migrate/051_create_travel_locs.rb

and the class name in 051_create_travel_locs.rb is CreateTravelLocs. But
when I did
rake db:migrate

it did give me this error

rake aborted!
uninitialized constant Mysql

with a windows pop-up

The procedure entry point mysql_stmt_row_tell could not be located in
the dynamic link library LIBMYSQL.dll

looks like a very naive question since it all worked well with
ruby-on-rails tutorails. been searching for the questions all the way
down with no luck.

looks like the migration file name and class name match each other.

anyone has some ideas? appreciated for any help!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs