Ruby on Rails issue

I know this has been heard a million times over but with many searches to no success, i come here for help. I’m trying to preform a scaffold action in order to test my connection to the mysql sever. Yet when i try to run the app i get this:

Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)

my database.yml is as follows:

adapter: mysql
database: music
username: *****
password: ******

i would highly appreciate any help you can give me. thanks.


port: 3306