0

I am pretty new to rails environment. I am learning it from Pluralsight's Ruby on rails for .Net Development: I am trying to run rake db:migrate and getting the following error:

D:\Rails\MyBlog>rake db:migrate
rake aborted!
126: The specified module could not be found.   - C:/RailsInstaller/Ruby1.9.3/li
b/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/1.9/mysql2.so
D:/Rails/MyBlog/config/application.rb:7:in `<top (required)>'
D:/Rails/MyBlog/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

The only difference between the course I am learning and my implementation is that I am using MySql and the course uses SQL Server 2008.

What could be the reason behind the error? Any Help?

writeToBhuwan
  • 3,233
  • 11
  • 39
  • 67
  • can you provide your gemfile? – Hardik Jan 30 '14 at 08:24
  • visit this answer here @ http://stackoverflow.com/questions/9936523/ruby-mysql2-error – Alok Anand Jan 30 '14 at 08:28
  • @Uandl.. Which gem file do you want.. Where can I find it? I am pretty new to this so I cannot answer your question prooperly.. – writeToBhuwan Jan 30 '14 at 09:23
  • @AlokAnand.. I tried the method in your link and now it says something like Successfully installed mysql2-0.3.11-x86-mingw32 1 gem installed Installing ri documentation for mysql2-0.3.11-x86-mingw32... Installing RDoc documentation for mysql2-0.3.11-x86-mingw32... D:\Rails\MyBlog>rake db:migrate rake aborted! Incorrect MySQL client library version! This gem was compiled for 6.0.0 but the client library is 5.0.41. D:/Rails/MyBlog/config/application.rb:7:in `' D:/Rails/MyBlog/Rakefile:4:in `' (See full trace by running task with --trace) – writeToBhuwan Jan 30 '14 at 09:31

1 Answers1

0

try

bundle install

That, you've probably done.

After that, go Here

Sherwyn Goh
  • 1,352
  • 1
  • 10
  • 19