Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Setting up a new Rails stack in Ubuntu, including Sphinx.

When I run rake ts:conf, I get "Can't connect to local MySQL server through socket '/var/run/mysqld/mysql.sock' (2)"

This socket file does exist.

Why this is on serverfault: I'm pretty sure this is one of those edge questions that could reasonably go on SF or SO, and I'm wondering if I somehow messed up the sphinx install by relying on the default configuration.

share|improve this question

It turns out that part of my app was looking for /mysql.sock, and part for /mysqld.sock. I wound up just symlinking one to the other.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.