Aleksi K. wrote in post #1005603:
I solved the problem by using ‘ruby-mysql’ gem instead of ‘mysql’
Thanks Aleksi. This solved my problem. (I’m using Mac 10.6.8)
And by the way, I tried to use rails and passenger with MAMP and it was
really pain in the ass and won’t recommend it.
… I decided to try to get things to work with MAMP and I was able to
get is up and running. Here’s how. I installed the ruby-mysql gem with
the following configuration. (NO LINE BREAKS)
sudo gem install ruby-mysql –
This should install correctly, but your app will then give you a error
No such file or directory - /tmp/mysql.sock
Correct this error by specifying the socket in your database.yml file:
Restart the app:
$: touch tmp/restart.txt
And that worked for me.