RE: [Rails] Problem in Database Connection...

No such file or directory - /tmp/mysql.sock

Your mysql.sock file may be in a different directory (or even called
differently). Consult your MySQL configuration or use `find / -name
mysql.sock` to find its whereabouts and adjust your config/database.yml



I found the path to mysql.sock...
It is /var/lib/mysql/mysql.sock

But I dont know what changes to make to config/database.yml file....

If you can't find out by yourself, you should consider buying a book
about Rails. You will have many more questions and there's no free

But here you go:

  socket: /var/lib/mysql/mysql.sock

- Roderick