Ruby on Rails - MAMP - database.yml


/ Published in: Rails
Save to your folder(s)



Copy this code and paste it in your HTML
  1. development:
  2. adapter: mysql
  3. database: XXX_dev
  4. username: root
  5. password:
  6. timeout: 5000
  7. socket: /Applications/MAMP/tmp/mysql/mysql.sock
  8.  
  9. # Warning: The database defined as "test" will be erased and
  10. # re-generated from your development database when you run "rake".
  11. # Do not set this db to the same as development or production.
  12. test:
  13. adapter: mysql
  14. database: XXX_test
  15. username: root
  16. password:
  17. timeout: 5000
  18. socket: /Applications/MAMP/tmp/mysql/mysql.sock
  19.  
  20. production:
  21. adapter: mysql
  22. database: XXX
  23. username: root
  24. password:
  25. timeout: 5000
  26. socket: /Applications/MAMP/tmp/mysql/mysql.sock

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.