Ah ok, thank you that explains it
I tried it but then I got this message below . To run rake db:migrate doesn’t work neither…
rake db:create db:seed --trace** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:create
foodsoft_development already exists
Access denied for user ‘root’@‘localhost’ (using password: NO)Please provide the root password for your MySQL installation
mypassword
Mysql2::Error: Can’t create database ‘foodsoft_test’; database exists: CREATE DATABASE foodsoft_test
DEFAULT CHARACTER SET utf8
COLLATE utf8_unicode_ci
/home/deploy/.rvm/gems/ruby-2.2.1/gems/mysql2-0.4.3/lib/mysql2/client.rb:107:in _query' /home/deploy/.rvm/gems/ruby-2.2.1/gems/mysql2-0.4.3/lib/mysql2/client.rb:107:in
block in query’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/mysql2-0.4.3/lib/mysql2/client.rb:106:in handle_interrupt' /home/deploy/.rvm/gems/ruby-2.2.1/gems/mysql2-0.4.3/lib/mysql2/client.rb:106:in
query’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in block in execute' /home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:472:in
block in log’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.6/lib/active_support/notifications/instrumenter.rb:20:in instrument' /home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:466:in
log’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in execute' /home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/mysql2_adapter.rb:231:in
execute’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:373:in create_database' /home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/tasks/mysql_database_tasks.rb:28:in
rescue in create’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/tasks/mysql_database_tasks.rb:15:in create' /home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/tasks/database_tasks.rb:93:in
create’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/tasks/database_tasks.rb:107:in block in create_current' /home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/tasks/database_tasks.rb:275:in
block in each_current_configuration’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/tasks/database_tasks.rb:274:in each' /home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/tasks/database_tasks.rb:274:in
each_current_configuration’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/tasks/database_tasks.rb:106:in create_current' /home/deploy/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.6/lib/active_record/railties/databases.rake:17:in
block (2 levels) in <top (required)>’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/task.rb:248:in call' /home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/task.rb:248:in
block in execute’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/task.rb:243:in each' /home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/task.rb:243:in
execute’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/task.rb:187:in block in invoke_with_call_chain' /home/deploy/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/monitor.rb:211:in
mon_synchronize’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/task.rb:180:in invoke_with_call_chain' /home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/task.rb:173:in
invoke’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/application.rb:150:in invoke_task' /home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/application.rb:106:in
block (2 levels) in top_level’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/application.rb:106:in each' /home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/application.rb:106:in
block in top_level’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/application.rb:115:in run_with_threads' /home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/application.rb:100:in
top_level’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/application.rb:78:in block in run' /home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/application.rb:176:in
standard_exception_handling’
/home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/lib/rake/application.rb:75:in run' /home/deploy/.rvm/gems/ruby-2.2.1/gems/rake-11.1.1/bin/rake:33:in
<top (required)>’
/home/deploy/.rvm/gems/ruby-2.2.1/bin/rake:23:in load' /home/deploy/.rvm/gems/ruby-2.2.1/bin/rake:23:in
’
/home/deploy/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in eval' /home/deploy/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in
’
Couldn’t create database for {“adapter”=>“mysql2”, “encoding”=>“utf8”, “reconnect”=>false, “database”=>“foodsoft_test”, “pool”=>5, “host”=>“localhost”}
** Invoke db:seed (first_time)
** Execute db:seed
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
- development - set it to false
- test - set it to false (unless you use a tool that preloads your test environment)
- production - set it to true
DEPRECATION WARNING: Currently, Active Record suppresses errors raised within after_rollback
/after_commit
callbacks and only print them to the logs. In the next version, these errors will no longer be suppressed. Instead, the errors will propagate normally just like in other Active Record callbacks.
You can opt into the new behavior and remove this warning by setting:
config.active_record.raise_in_transactional_callbacks = true
(called from block in tsort_each at /home/deploy/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226)
DEPRECATION WARNING: Currently, Active Record suppresses errors raised within after_rollback
/after_commit
callbacks and only print them to the logs. In the next version, these errors will no longer be suppressed. Instead, the errors will propagate normally just like in other Active Record callbacks.
You can opt into the new behavior and remove this warning by setting:
config.active_record.raise_in_transactional_callbacks = true
(called from block in tsort_each at /home/deploy/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226)
** Execute db:abort_if_pending_migrations
You have 57 pending migrations:
1 CreateUsers
2 CreateGroups
3 CreateSuppliers
4 CreateArticleMeta
5 CreateFinancialTransactions
6 CreateArticles
7 CreateArticlePrices
8 CreateOrders
9 CreateOrderResults
10 UserPasswordReset
11 CreateComments
12 CreateOrderClearing
13 AddMessaging
14 CreateTasks
15 ChangeResultQuantities
16 AddSharedListsConnection
17 AddMinOrderQuantity
18 CreateInvites
19 RemoveUniquenessOfArticleName
20 AddUsersLastLogin
21 RemoveTableArticlePrices
22 AddRequiredUserForTask
23 NewWording
24 AddDepositDefaults
25 ExtendComments
20090120184410 RoadToVersionThree
20090317175355 AddProfitToOrders
20090325175756 CreatePages
20090405131156 ModifyGroupOrderArticleResult
20090731132547 AddStatsToGroups
20090811144901 AddWeeklyToTasks
20090812110010 AddNoteToDeliveries
20090907120012 AddMissingIndexes
20110507184920 AddDurationToTasks
20110507192928 AddTaskDurationToWorkgroups
20120512211613 AddOrderIndexes
20120622094337 AddNextWeeklyTasksNumberToWorkgroups
20120929155541 AddIgnoreAppleRestrictionToGroups
20121112093327 AddCreatedByUserIdToOrders
20121216180646 RemoveAssignedFromTasks
20121230142516 RemoveAccountUpdatedFromOrdergroups
20130615073715 CreatePeriodicTaskGroups
20130622095040 MoveWeeklyTasks
20130624084223 RemoveWeeklyFromTasks
20130624085246 RemoveWeeklyTaskFromGroups
20130702113610 UpdateGroupOrderTotals
20130718183100 CreateSettings
20130718183101 MigrateUserSettings
20130920201529 AllowMissingNick
20130930132511 AddQuantitiesToOrderArticle
20140102170431 AddResultComputedToGroupOrderArticles
20140318173000 DeleteEmptyGroupOrderArticles
20140521142651 AddSyncMethodToSupplier
20140921104907 RemoveStaleMemberships
20141211210719 IncreaseAccountBalancePrecision
20150227161931 AddReplytoAndGroupidToMessages
20150301000000 AddLastActivityToUser
Run rake db:migrate
to update your database then try again.
Thank you again!
Maxi