title: How to get Phusion Passenger, MySQL and Rails to play nicely in production
body: <p>I've written a rails app that's been running fine for a while without a database. Now, I'm dropping the registration database into the mix. It's not working in production. Everything works fine, of course, on my Mac.</p>
  
  <p>Here's the production environment: 
  - Ubuntu Hardy
  - Phusion Passenger
  - Rails 2.3.2</p>
  
  <p>MySQL on the machine is running fine.</p>
  
  <p>I have the database.yml file with the correct information. I can run the migrations with no problems:</p>
  
  <pre><code>rake db:migrate RAILS_ENV=production
  </code></pre>
  
  <p>The database is being correctly updated.</p>
  
  <p>So, I hit tmp/restart and hit the site. I got the 500 error, but nothing was written to the production log (very odd). So, I checked the apache log, and I got this message:</p>
  
  <p>!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.</p>
  
  <p>I have installed the MySQL gem (version 2.7). I'm still getting this error.</p>
  
  <p>When I change the production database configuration to point to a dummy sqlite database, everything works fine. When I change it back to the MySQL configuration, I get the same error message.</p>
  
  <p>I'm entirely out of ideas, and I wish that it would just work. I'm pulling my hair out, and I greatly appreciate any help you can provide. I've included everything I could think of, but please let me know if any more information would be useful.</p>
  
  <p>Thanks!</p>
  
  <p>Jason</p>