Skip to content

Instantly share code, notes, and snippets.

@CodeOfficer
Created September 6, 2009 07:10
Show Gist options
  • Save CodeOfficer/181695 to your computer and use it in GitHub Desktop.
Save CodeOfficer/181695 to your computer and use it in GitHub Desktop.
mysql: &mysql
adapter: mysql
username: root
password: <%= get_mysql_password %>
host: localhost
socket: <%= [
'/var/lib/mysql/mysql.sock',
'/var/run/mysqld/mysqld.sock',
'/tmp/mysqld.sock',
'/tmp/mysql.sock',
].detect { |socket| File.exist?(socket) } %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment