Hi, did you ran bundle install? Make sure that your Gemfile contains the line gem 'mysql'
Balo On Sat, Jul 13, 2013 at 7:39 AM, Oliver David <[email protected]> wrote: > I'm trying to use MySQL instead of SQLite3. I have MySQL installed on my > pc. Do I need to ran something in the ruby to use MySQL? > > > > > C:\>rails new MySQLRestaurant --database=mysql > > C:\>cd MySQLRestaurant > > C:\MySQLRestaurant>rails generate scaffold review poster:string > date:datetime ar > ticle:text > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/l > ib/mysql2/mysql2.rb:2:in `require': 126: The specified module could not be > found > . - > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-min > gw32/lib/mysql2/1.9/mysql2.so (LoadError) > from > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11- > x86-mingw32/lib/mysql2/mysql2.rb:2:in `<top (required)>' > from > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11- > x86-mingw32/lib/mysql2.rb:9:in `require' > from > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11- > x86-mingw32/lib/mysql2.rb:9:in `<top (required)>' > from > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.4/ > lib/bundler/runtime.rb:72:in `require' > from > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.4/ > lib/bundler/runtime.rb:72:in `block (2 levels) in require' > from > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.4/ > lib/bundler/runtime.rb:70:in `each' > from > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.4/ > lib/bundler/runtime.rb:70:in `block in require' > from > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.4/ > lib/bundler/runtime.rb:59:in `each' > from > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.4/ > lib/bundler/runtime.rb:59:in `require' > from > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.3.4/ > lib/bundler.rb:132:in `require' > from C:/MySQLRestaurant/config/application.rb:7:in `<top > (required)>' > from > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0 > /lib/rails/commands.rb:44:in `require' > from > C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0 > /lib/rails/commands.rb:44:in `<top (required)>' > from bin/rails:4:in `require' > from bin/rails:4:in `<main>' > > C:\MySQLRestaurant> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/41572abc-e281-4660-a96a-bbea8407c75e%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAF9Nz7x1iZCbhU8EFygWOc640KAXJFfimCWgvN%2B_gUsRjJEstw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.

