Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3320596
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:57:43+00:00 2026-05-17T22:57:43+00:00

I did the following to install Ruby on Rails on Windows XP: Installed rubyinstaller-1.9.2-p0.exe

  • 0

I did the following to install Ruby on Rails on Windows XP:

  • Installed rubyinstaller-1.9.2-p0.exe
  • gem install rails
  • gem install mysql2
  • cd my_dir
  • rails new my_app -d mysql

The created config/database.yml contains the following MySQL configuration:

development:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: first_development
  pool: 5
  username: root
  password:
  host: localhost

However, when I run rails server from my_dir I got the following error:

D:/Programs/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2
/mysql2.rb:2:in `require': 126: The specified module could not be found.   - D:/
Programs/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2/1.
9/mysql2.so (LoadError)
...

along with the following pop-up message:

The application has failed to start because LIBMYSQL.dll was not found. Re-installing the application may fix this problem.

The problem, I guess, is the installation of MySQL.

I have WAMP installed, and I would like to use its MySQL installation.

I searched for libmysql.dll and indeed found it in: my_path_to_wamp\bin\mysql\mysql5.1.36\bin\libmysql.dll

The question is how would I tell Rails to take this installation of MySQL ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T22:57:44+00:00Added an answer on May 17, 2026 at 10:57 pm

    I’ve had this problem when installing the mysql gem before, and a quick fix is just to copy the libmysql.dll into your ruby bin folder. I recently got rails running off of a WAMP MySQL server without a problem, so if this doesn’t solve it post a more specific error message once you’ve sorted out the dependency issue and I’ll look at my configuration.

    EDIT: Just to be specific, I’m running XAMPP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to install a new font and use it iPhone.I did the following
I've got a problem trying to install the Ruby mysql gem driver. I recently
I have been following the tutorial to install Ruby on Rails on the mac
I just did a fresh install of RVM, JRuby, Rails, and MySQL, but I
I'm new to Ruby on Rails. I ran the following in a terminal when
I'm trying to install ruby-filemagic. I tried sudo gem install ruby-filemagic -v 0.2.2 and
I just migrated from Windows to Ubuntu, and I am trying to install Ruby
I am new to Ruby on Rails and testing. When I run rake test
I'm a relatively new linux and rails dev and I'm attempting the following setup:
End result is I'm trying to get Ruby on Rails installed on my OS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.