Guest User

Untitled

a guest
Aug 26th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. How do I change my database from SQLite to MYSQL in Rails
  2. gem 'mysql2'
  3.  
  4. development:
  5. adapter: mysql2
  6. encoding: utf8
  7. reconnect: false
  8. database: db_name_here
  9. pool: 5
  10. username: root
  11. password:
  12. host: localhost
  13.  
  14. rake db:create
  15. rake db:migrate
  16.  
  17. rails new app_name_here --database=mysql
  18.  
  19. gem 'mysql2'
  20.  
  21. gem 'mysql2', '~> 0.2.1'
Add Comment
Please, Sign In to add comment