Guest User

Untitled

a guest
Sep 1st, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. How to correctly install MySQL Ruby Gem
  2. gem install mysql
  3.  
  4. gem 'mysql'
  5.  
  6. bundle install
  7.  
  8. development:
  9. adapter: mysql
  10. database: name_of_your_database
  11. encoding: utf8
  12. host: localhost
  13. username: root (replace with the actual username)
  14. password: root (replace with the actual password)
  15.  
  16. user = User.find(id)
  17.  
  18. rvm gemset create appname && rvm gemset use appname
  19.  
  20. bundle install
Add Comment
Please, Sign In to add comment