我正在使用mongify(http://mongify.com/)将数据从SQL SERVER 2014迁移到MongoDB。我有以下database.config文件:
database.config:
sql_connection do
adapter "sqlserver"
host "<DATABASE SERVERNAME>"
username "<USERNAME>"
password "<PASSWORD>"
database "<DATABASENAME>"
end
mongodb_connection do
host "localhost"
database "<DATABASENAME>"
end
根据门户中提到的说明,然后我尝试测试以下命令:
mongify检查database.config
我遇到以下错误:
C:/Ruby23/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': Could not load 'active_record/connection_adapters/sqlserver_adapter_adapter'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile. (LoadError)
from C:/Ruby23/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/temp/.gem/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `block in require'
from C:/temp/.gem/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in `load_dependency'
from C:/temp/.gem/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in `require'
from C:/temp/.gem/gems/activerecord-4.2.10/lib/active_record/connection_adapters/connection_specification.rb:175:in `spec'
from C:/temp/.gem/gems/activerecord-4.2.10/lib/active_record/connection_handling.rb:50:in `establish_connection'
from C:/temp/.gem/gems/mongify-1.3.2/lib/mongify/database/sql_connection.rb:40:in `setup_connection_adapter'
from C:/temp/.gem/gems/mongify-1.3.2/lib/mongify/database/sql_connection.rb:56:in `has_connection?'
from C:/temp/.gem/gems/mongify-1.3.2/lib/mongify/cli/command/worker.rb:99:in `check_sql_connection'
from C:/temp/.gem/gems/mongify-1.3.2/lib/mongify/cli/command/worker.rb:68:in `execute'
from C:/temp/.gem/gems/mongify-1.3.2/lib/mongify/cli/application.rb:28:in `execute!'
from C:/temp/.gem/gems/mongify-1.3.2/bin/mongify:17:in `<top (required)>'
from C:/temp/.gem/bin/mongify:23:in `load'
from C:/v/.gem/bin/mongify:23:in `<main>'
任何人都可以帮助我解决此问题