Installing Webistrano on Ubuntu - mysql.sock error

Are you trying to install Webistrano on Ubuntu but you are running into the "Can't connect to local MySQL server through socket '/tmp/mysql.sock'" error?

Note that for some reason the .sock file on Ubuntu is located in /var/run/mysqld and it is called mysqld.sock not mysql.sock

Change /tmp/mysql.sock to /var/run/mysqld/mysqld.sock in your database configuration file (config/database.yml) in your webistrano directory and that should solve the problem.

Comments

Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <iframe> <embed> <object> <img>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.

More information about formatting options