Connect': Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (Mysql2

Hi all,
I did a fresh install of ROR on my fedora 15,i get the
following error.

" $ rails s

=> Booting WEBrick
=> Rails 3.1.1 application starting in development on
=> Call with -d to detach
=> Ctrl-C to shutdown server
`connect’: Can’t connect to local MySQL server through socket
‘/var/lib/mysql/mysql.sock’ (2) (Mysql2::Error)"

Before i got this error i tried all the below mentioned steps.
1)Did a fresh install of Fedora 15.
2)Installed curl.Installed git core,installed gcc,Installed
3)Installed RVM…
4)Installed Ruby 1.9.2 p290
5)Installed rails 3.1.1.
6)Installed Mysql server and Mysql devel.
7)Pulled my project from git.
8)Did a bundle install.
9)Then when i started the rails server. i got the above mentioned error
pl help me sos…

Can you give me your database.yml configurations?

On Mon, Nov 7, 2011 at 5:01 PM, dv dhanadan [email protected]

=> Ctrl-C to shutdown server
4)Installed Ruby 1.9.2 p290

You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at

Thanks & Regards,