daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Mar 17th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # dynamically determining the MySQL socket in use
  2.  
  3. <% socket = ["/tmp/mysql.sock",
  4.            "/opt/local/var/run/mysql5/mysqld.sock",
  5.            "/tmp/mysqld.sock",
  6.            "/var/run/mysqld.sock"].detect { |socket| File.exist?(socket) } %>
  7.  
  8. development:
  9.   encoding: utf8
  10.   username: root
  11.   password:
  12.   database: iqvoc_development
  13. <% if defined?(JRuby) %>
  14.   adapter: jdbcmysql
  15.   hostname: localhost
  16. <% else %>
  17.   adapter: mysql
  18.   socket: <%= socket %>
  19. <% end %>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top