I acquired a rails project in version 5.3.8.After i attempted to operate rake db:create,
the below error happened.
Couldn't create database for {"encoding"=>"utf8", "username"=>"root", "adapter"=>"mysql", "database"=>"claims_test", "host"=>"localhost", "password"=>"root", "socket"=>"/var/run/mysqld/mysqld.sock"}, charset: utf8, collation: utf8_unicode_ci
(if you set the charset manually, make sure you have a matching collation)

And that i produced DB by hand and attempted to operate the applying.And now i'm getting this error.

/!\ FAILSAFE /!\ Tue May 10 20:38:48 +0530 2011
Status: 500 Internal Server Error
uninitialized constant MysqlCompat::MysqlRes

I attempted with both Webrick and mongrel

appears like same cause of both problem.Any assistance will be appreciated

Ah, this error is really common. Its MySQL. This is actually the solution. Change pathways as needed. Tell us the way you jump on. Best wishes.

export ARCHFLAGS="-arch i386 -arch x86_64" gem install mysql -- --with-mysql-dir=/usr/local \ --with-mysql-config=/usr/local/bin/mysql_config