Advertisement
Guest User

Untitled

a guest
Jan 25th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. rake db:migrate RAILS_ENV=production
  2.  
  3. C:jcccf-goslowserver-e30bf00>rake db:migrate RAILS_ENV=production
  4. (in C:/jcccf-goslowserver-e30bf00)
  5. rake aborted!
  6. Unknown database 'goslow_production'
  7. C:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2/client.r
  8. b:37:in `connect'
  9. C:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/mysql2/client.r
  10. b:37:in `initialize'
  11. C:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/active_record/c
  12. onnection_adapters/mysql2_adapter.rb:14:in `new'
  13. C:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/active_record/c
  14. onnection_adapters/mysql2_adapter.rb:14:in `mysql2_connection'
  15. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/connect
  16. ion_adapters/abstract/connection_pool.rb:230:in `new_connection'
  17. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/connect
  18. ion_adapters/abstract/connection_pool.rb:238:in `checkout_new_connection'
  19. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/connect
  20. ion_adapters/abstract/connection_pool.rb:194:in `block (2 levels) in checkout'
  21. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/connect
  22. ion_adapters/abstract/connection_pool.rb:190:in `loop'
  23. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/connect
  24. ion_adapters/abstract/connection_pool.rb:190:in `block in checkout'
  25. C:/Ruby192/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
  26. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/connect
  27. ion_adapters/abstract/connection_pool.rb:189:in `checkout'
  28. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/connect
  29. ion_adapters/abstract/connection_pool.rb:96:in `connection'
  30. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/connect
  31. ion_adapters/abstract/connection_pool.rb:318:in `retrieve_connection'
  32. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/connect
  33. ion_adapters/abstract/connection_specification.rb:97:in `retrieve_connection'
  34. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/connect
  35. ion_adapters/abstract/connection_specification.rb:89:in `connection'
  36. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/migrati
  37. on.rb:486:in `initialize'
  38. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/migrati
  39. on.rb:433:in `new'
  40. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/migrati
  41. on.rb:433:in `up'
  42. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/migrati
  43. on.rb:415:in `migrate'
  44. C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.1/lib/active_record/railtie
  45. s/databases.rake:142:in `block (2 levels) in <top (required)>'
  46. C:/Ruby192/lib/ruby/1.9.1/rake.rb:634:in `call'
  47. C:/Ruby192/lib/ruby/1.9.1/rake.rb:634:in `block in execute'
  48. C:/Ruby192/lib/ruby/1.9.1/rake.rb:629:in `each'
  49. C:/Ruby192/lib/ruby/1.9.1/rake.rb:629:in `execute'
  50. C:/Ruby192/lib/ruby/1.9.1/rake.rb:595:in `block in invoke_with_call_chain'
  51. C:/Ruby192/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
  52. C:/Ruby192/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain'
  53. C:/Ruby192/lib/ruby/1.9.1/rake.rb:581:in `invoke'
  54. C:/Ruby192/lib/ruby/1.9.1/rake.rb:2041:in `invoke_task'
  55. C:/Ruby192/lib/ruby/1.9.1/rake.rb:2019:in `block (2 levels) in top_level'
  56. C:/Ruby192/lib/ruby/1.9.1/rake.rb:2019:in `each'
  57. C:/Ruby192/lib/ruby/1.9.1/rake.rb:2019:in `block in top_level'
  58. C:/Ruby192/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
  59. C:/Ruby192/lib/ruby/1.9.1/rake.rb:2013:in `top_level'
  60. C:/Ruby192/lib/ruby/1.9.1/rake.rb:1992:in `run'
  61. C:/Ruby192/bin/rake:31:in `<main>'
  62.  
  63. C:jcccf-goslowserver-e30bf00>
  64.  
  65. ...
  66. 3. Configure your MySQL settings in config/database.yml for "production"
  67. 4. Open the console (cmd on Windows, Terminal on Mac/Linux) and cd to the GoSlow directory
  68. 5. Type "rake db:migrate RAILS_ENV=production" and press enter.
  69. 6. Type "rake bootstrap:all RAILS_ENV=production" and press enter.
  70.  
  71. # MySQL. Versions 4.1 and 5.0 are recommended.
  72. #
  73. # Install the MySQL driver:
  74. # gem install mysql2
  75. #
  76. # And be sure to use new-style password hashing:
  77. # http://dev.mysql.com/doc/refman/5.0/en/old-client.html
  78. development:
  79. adapter: mysql2
  80. encoding: utf8
  81. reconnect: false
  82. database: GoSlow_development
  83. pool: 5
  84. username: root
  85. password:
  86. host: localhost
  87.  
  88. # Warning: The database defined as "test" will be erased and
  89. # re-generated from your development database when you run "rake".
  90. # Do not set this db to the same as development or production.
  91. test:
  92. adapter: mysql2
  93. encoding: utf8
  94. reconnect: false
  95. database: GoSlow_test
  96. pool: 5
  97. username: root
  98. password:
  99. host: localhost
  100.  
  101. production:
  102. adapter: mysql2
  103. encoding: utf8
  104. reconnect: false
  105. database: GoSlow_production
  106. pool: 5
  107. username: root
  108. password: [MyPassword]
  109. host: localhost
  110.  
  111. CREATE DATABASE goslow_production;
  112.  
  113. rake db:create
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement