在本地服务器中复制数据

时间:2013-11-16 23:13:59

标签: mysql ruby-on-rails

嗯..我不知道如何从我的问题开始。因为我的铁轨发生了一些非常奇怪的事情。在一些例程中,当我在MYSQL中保存信息时,我的rails正在复制数据(引入两倍于您所看到的相同值)

Started POST "/error_reports" for 127.0.0.1 at 2013-11-17 00:04:26 +0100
Processing by ErrorReportsController#create as JS
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"HFe+irzZMidY8WXcLg1JGOxp9Sl/A2LgXus2c3kJQcA=", "error_report"=>{"topic_test_question_id"=>"5925", "message"=>"Otros", "message_other"=>"fasd"}, "commit"=>"Enviar"}
  User Load (0.3ms)  SELECT `users`.* FROM `users` WHERE `users`.`auth_token` = 'tf2oEpU_lFFVWK-cxiTHWg' LIMIT 1
   (0.1ms)  BEGIN
  SQL (1.5ms)  INSERT INTO `error_reports` (`created_at`, `message`, `topic_test_question_id`, `updated_at`, `user_id`) VALUES ('2013-11-16 23:04:26', 'Otros: fasd', 5925, '2013-11-16 23:04:26', 2)
  SQL (0.7ms)  INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-11-16 23:04:26', NULL, '--- !ruby/object:Delayed::PerformableMailer\nobject: !ruby/class \'Notifications\'\nmethod_name: :report_error\nargs:\n- !ruby/ActiveRecord:ErrorReport\n attributes:\n id: 3\n topic_test_question_id: 5925\n message: \'Otros: fasd\'\n user_id: 2\n created_at: 2013-11-16 23:04:26.144186000 Z\n updated_at: 2013-11-16 23:04:26.144186000 Z\n', NULL, NULL, NULL, 0, NULL, '2013-11-16 23:04:26', '2013-11-16 23:04:26')
   (0.3ms)  COMMIT
  Rendered error_reports/_form.html.erb (5.1ms)
  Rendered error_reports/create.js.erb (6.5ms)
Completed 200 OK in 117ms (Views: 11.0ms | ActiveRecord: 4.4ms)


Started POST "/error_reports" for 127.0.0.1 at 2013-11-17 00:04:26 +0100
Processing by ErrorReportsController#create as JS
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"HFe+irzZMidY8WXcLg1JGOxp9Sl/A2LgXus2c3kJQcA=", "error_report"=>{"topic_test_question_id"=>"5925", "message"=>"Otros", "message_other"=>"fasd"}, "commit"=>"Enviar"}
  User Load (0.3ms)  SELECT `users`.* FROM `users` WHERE `users`.`auth_token` = 'tf2oEpU_lFFVWK-cxiTHWg' LIMIT 1
   (0.1ms)  BEGIN
  SQL (0.2ms)  INSERT INTO `error_reports` (`created_at`, `message`, `topic_test_question_id`, `updated_at`, `user_id`) VALUES ('2013-11-16 23:04:26', 'Otros: fasd', 5925, '2013-11-16 23:04:26', 2)
  SQL (0.2ms)  INSERT INTO `delayed_jobs` (`attempts`, `created_at`, `failed_at`, `handler`, `last_error`, `locked_at`, `locked_by`, `priority`, `queue`, `run_at`, `updated_at`) VALUES (0, '2013-11-16 23:04:26', NULL, '--- !ruby/object:Delayed::PerformableMailer\nobject: !ruby/class \'Notifications\'\nmethod_name: :report_error\nargs:\n- !ruby/ActiveRecord:ErrorReport\n attributes:\n id: 4\n topic_test_question_id: 5925\n message: \'Otros: fasd\'\n user_id: 2\n created_at: 2013-11-16 23:04:26.270813000 Z\n updated_at: 2013-11-16 23:04:26.270813000 Z\n', NULL, NULL, NULL, 0, NULL, '2013-11-16 23:04:26', '2013-11-16 23:04:26')
   (0.4ms)  COMMIT
  Rendered error_reports/_form.html.erb (3.6ms)
  Rendered error_reports/create.js.erb (4.4ms)
Completed 200 OK in 15ms (Views: 7.4ms | ActiveRecord: 1.2ms)

最奇怪的是,在生产中(当在服务器中时)工作正常。但真诚地在我的本地机器上发生了一些错误。我已经重新启动了计算机,再次从我的生产服务器下载了所有文件。在不同的目录中工作。 Droped整个数据库并从生产服务器迁移。

如果你能帮助我,我将非常感激。

0 个答案:

没有答案