Skip to content

Instantly share code, notes, and snippets.

@smathy
Created March 5, 2010 07:23
Show Gist options
  • Save smathy/322530 to your computer and use it in GitHub Desktop.
Save smathy/322530 to your computer and use it in GitHub Desktop.
socket: <%= (`my_print_defaults server mysqld mysqld_safe safe_mysqld | grep -- --socket | tail -n1 | cut -f2 -d=` || `mysql_config --socket`).chomp %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment