I’ve been messing with RADRAILS at work and I could not get the db connection to work. A little research led me to this solution. (This is for Ubuntu 5.10)
Using RADRAILS with MySql
$ sudo vi /etc/mysql/my.cnf
# skip-networking
Then restart the mysqld
$sudo /etc/init.d/mysql stop
$sudo /etc/init.d/mysql start