Fixing libmysql.dll issue in Rails

To fix the error, “This application has failed to start because LIBMYSQL.DLL was not found. Re-installing the application may fix this problem.”  while working on rails using mysql as the database, 

Copy the libmysql.dll found in the mysql installation directory (mysql\bin) and paste it in your ruby installation directory (ruby\bin)

Restart the server and viola, the error is fixed.

Advertisements

6 thoughts on “Fixing libmysql.dll issue in Rails

  1. Thanks. I am using MYSQL 5.0.83 on RoR 2.3.2. Had to use this version of MYSQL as the 5.1.35 version kept crashing my Webrick server instance. Then I hit this LIBMYSQL.DLL problem. 🙂

    However your solution worked… didnt even need to restart the Webrick… but I did anyway.

    Thanks

  2. [1] gem install mysql
    [2] you will see like error syntac but dont pay attention to it
    [3] find LIBMYSQL.DLL from your mysql/bin folder in your mysql folder
    not ruby folder.
    [4] copy & paste that file to ruby/bin
    [5] restart your server or console, if you are already run it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s