title: Rails 5 and Ruby 2.3.3 Failed to load libmysql.dll
body: <p>Getting below error message logged in the console while starting the server for an application created with mysql database.</p>
  
  <pre><code>Failed to load libmysql.dll from C:\RailsInstaller\Ruby2.3.0\lib\ruby\gems\2.3.0\gems\mysql2-0.4.7-x86-mingw32\vendor\libmysql.dll
  </code></pre>
  
  <p>Environment Details : </p>
  
  <pre><code>Window 7 64 bit
  Rails 5.0.4
  ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
  mysqld  Ver 5.7.18 for Win64 on x86_64 (MySQL Community Server (GPL))
  </code></pre>
  
  <p>Post install message from mysql2 ruby gem received below message on the console.</p>
  
  <pre><code>You've installed the binary version of mysql2.
  It was built using MySQL Connector/C version 6.1.10.
  It's recommended to use the exact same version to avoid potential issues.
  
  At the time of building this gem, the necessary DLL files were retrieved from:
  http://cdn.mysql.com/Downloads/Connector-C/mysql-connector-c-6.1.10-win32.zip
  
  This gem *includes* vendor/libmysql.dll with redistribution notice in vendor/README.
  </code></pre>
  
  <p>I have tried the solution from <a href="https://stackoverflow.com/questions/29368332/failed-to-load-libmysql-dll-file-using-ruby-on-rails-3">here</a> but did not work.</p>
  
  <p>Any help appreciated, thanks in advance.</p>