Ruby on Rails issue

software development

#1

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:

development:
adapter: mysql
database: music
username: *****
password: ******
host: mysql.lab.mydomain.com

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


#2

add

port: 3306