I am brand-new to web development and RoR - an uber-noob! - and I\'m taking an online RoR course via lynda.com. Excited to join the StackOverflow community, and would reall
This question is somewhat dated, but it I came across it while researching a similar issue. Confirming the socket location and name with the mysql_config
command was instrumental in resolving my problem.
I was getting the same error and had adjusted the socket entry path in config/database.yml
to match where I found the .sock
file.
However beyond the path change, the socket entry in my database.yml
file referred to "mysql.sock"
, as do most of the discussions related to this issue during my search.
The output of mysql_config
was slightly different. It revealed that the file name was "mysqld.sock"
...notice the 'd', not mysql.sock
. I missed it because I was focussing on the path.
The mysql
installation is on a server only VPS, no client, which may explain the difference in the socket file name.