Я использую Sqlite3. Он работает нормально, но мне нужно запустить MySQL, а затем добавить:
- MySQL gem
- комплектация
- работает сервер рельсов
и я сталкиваюсь со следующей ошибкой:
es_index.rb:65:in `register'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kern
el_require.rb:20:in `require_with_bootsnap_lfi'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kern
el_require.rb:29:in `require'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:29
1:in `block in require'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:25
5:in `block in load_dependency'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:66
1:in `new_constants_in'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:25
5:in `load_dependency'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:29
1:in `require'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/activerecord-5.2.2/lib/active_record/connection_adapters/
connection_specification.rb:191:in `spec'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/activerecord-5.2.2/lib/active_record/connection_adapters/
abstract/connection_pool.rb:952:in `establish_connection'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/activerecord-5.2.2/lib/active_record/connection_handling.
rb:60:in `establish_connection'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/activerecord-5.2.2/lib/active_record/railtie.rb:136:in `b
lock (2 levels) in <class:Railtie>'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb
:71:in `instance_eval'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/activesupport-5.2.2/lib/active_support/lazy_load_hooks.rb
:71:in `block in execute_hook'
from C:/Ruby/lib/ruby/gems/2.3.0/gems/activesupport- (etc....)
Мой гемфайл: https://imgur.com/a/xN4MJEQ
Development.yml:
development:
adapter: mysql2
encoding: utf8mb4
reconnect: false
database: employee_management_system
pool: 5
username: root
password:
socket: /tmp/mysql.sock