title: Rake DB Migrate MySQL
body: <p>Can someone help me out? Setting up a local Rails 2.2.2 project but rake is failing. The mysql gem was installed:</p>
  
  <p>Installed MySQL gem like so:</p>
  
  <pre><code>sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
  Successfully installed mysql-2.9.0
  1 gem installed
  Installing ri documentation for mysql-2.9.0...
  Installing RDoc documentation for mysql-2.9.0...
  </code></pre>
  
  <p>Then tried to call rake:</p>
  
  <pre><code>$ rake --trace db:migrate
  </code></pre>
  
  <p>** Invoke db:migrate (first_time)<br />
  ** Invoke environment (first_time)<br />
  ** Execute environment<br />
  ** Execute db:migrate<br />
  !!! The bundled mysql.rb driver has been removed from Rails 2.2. 
  <br />Please install the mysql gem and try again: gem install mysql.
  <br />rake aborted!
  dlopen(/Library/Ruby/Gems/1.8/gems/mysql-2.9.0/lib/mysql/mysql_api.bundle, 9): Library not loaded: libmysqlclient.18.dylib
    Referenced from: /Library/Ruby/Gems/1.8/gems/mysql-2.9.0/lib/mysql/mysql_api.bundle
    Reason: image not found - /Library/Ruby/Gems/1.8/gems/mysql-2.9.0/lib/mysql/mysql_api.bundle</p>