I tried to find some help in the Passenger group without luck. I would not like to use mysql2 gem (it gives an error too) because in production I have to use mysql gem anyway. I moved to Passenger 3 and I am not able to run a Rails 2 and a 3 apps. They both uses Passenger 3 (latest) and ree 2011.03.
The Rails 2 app gives uninitialized constant MysqlCompat::MysqlRes
The Rails 3:
NoMethodError
undefined method `init' for Mysql:Class
Rails.root: /opt/local/apache2/rails-data/apps Application Trace | Framework Trace | Full Trace
activerecord (3.0.5) lib/active_record/connection_adapters/ mysql_adapter.rb:30:in `mysql_connection' activerecord (3.0.5) lib/active_record/connection_adapters/abstract/ connection_pool.rb:229:in `send' activerecord (3.0.5) lib/active_record/connection_adapters/abstract/ connection_pool.rb:229:in `new_connection'