因此,我们正在测试我们的应用程序的性能,但我们希望在生产数据上进行测试,以确保我们的测试相关。
我尝试this方式拒绝它,但我有以下错误:
```(in /Users/theonegri/Projects/shit/buildzoom/rails)
```rake aborted!
Mysql2::Error: CREATE command denied to user 'rbuser'@'173-228-44-253.dsl.static.sonic.net' for table 'schema_migrations': CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `query'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `block in execute'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/newrelic_rpm-3.6.9.171/lib/new_relic/agent/instrumentation/active_record.rb:46:in `block in log_with_newrelic_instrumentation'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/newrelic_rpm-3.6.9.171/lib/new_relic/agent/method_tracer.rb:276:in `trace_execution_scoped'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/newrelic_rpm-3.6.9.171/lib/new_relic/agent/instrumentation/active_record.rb:43:in `log_with_newrelic_instrumentation'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `execute'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/connection_adapters/mysql2_adapter.rb:211:in `execute'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/schema_statements.rb:170:in `create_table'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:434:in `create_table'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/schema_statements.rb:426:in `initialize_schema_migrations_table'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/migration.rb:663:in `initialize'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/railties/databases.rake:330:in `new'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/railties/databases.rake:330:in `block (2 levels) in <top (required)>'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `eval'
/Users/theonegri/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => test:profile => test:prepare => db:test:prepare => db:abort_if_pending_migrations
(See full trace by running task with --trace)```