title: Rails-MySQL Error - uninitialized constant MysqlCompat::MysqlRes
body: <p>Trying to get a Rails app running on Snow Leopard.</p>
  
  <ul>
  <li>Downloaded mysql-5.5.8-osx10.6-x86_64.dmg and ran installer</li>
  <li>Ruby 1.8.7 (Default OS X version)</li>
  <li>Rails 2.3.5</li>
  </ul>
  
  <p>When I attempt to run "rake db:migrate" I get</p>
  
  <ul>
  <li>rake aborted!</li>
  <li>uninitialized constant MysqlCompat::MysqlRes</li>
  </ul>
  
  <p>Yes I know this has been asked before. I have already reviewed the following links and followed the steps included in them and the result is the same each time.</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/991708/rails-mysql-and-snow-leopard">Rails, MySQL and Snow Leopard</a></li>
  <li><a href="http://techliberty.blogspot.com/2009/12/dealing-with-rake-aborted-uninitialized.html" rel="nofollow noreferrer">http://techliberty.blogspot.com/2009/12/dealing-with-rake-aborted-uninitialized.html</a></li>
  <li><a href="http://www.schmidp.com/2009/06/14/rubyrails-and-mysql-on-snow-leopard-10a380/" rel="nofollow noreferrer">http://www.schmidp.com/2009/06/14/rubyrails-and-mysql-on-snow-leopard-10a380/</a></li>
  </ul>
  
  <p>Prior to the following commands I run "sudo gem uninstall mysql" followed by "sudo gem clean mysql" based on the above links:</p>
  
  <ul>
  <li>sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config   </li>
  <li>sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config</li>
  </ul>
  
  <p>It is still failing. I am just flumoxed and would greatly appreciate any help.</p>
  
  <p>Many thanks!</p>