1
나는 내 애플 리케이션을 레일즈 2.3.14와 루비 1.9.2로 업그레이드했고, MySQL과 관련된 모든 종류의 이상한 문제를 겪어왔다. 처음 엔 약간의 인코딩 문제가 있음을 깨달을 때까지 ruby-mysql
보석 (2.9.3)을 사용했으며, 일치는 mysql2
보석으로 업그레이드하는 것으로 보입니다.rails2로 mysql2를 설정하는 방법
그래서, 이전 ruby-mysql
어댑터를 제거하고 mysql2
를 설치하고, 또한 내 응용 프로그램의 Gemfile에 포함했습니다
gem 'mysql2', '< 0.3'
또한, 나는 adapter: mysql2
와 database.yml
업데이트되었습니다. 나는이 문서에서 읽은 바로는이 그것을해야하지만 내 응용 프로그램을 부팅 할 때 나는 충돌을 점점 계속 :
$ ./script/server
=> Booting WEBrick
=> Rails 2.3.14 application starting on http://0.0.0.0:3000
vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require': no such file to load -- mysql (MissingSourceFile)
from ..vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
from ..vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
from ..vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
from ..config/environment.rb:81:in `<top (required)>'
...
내가이 레일에서 MySQL의 어댑터 교체에 드롭해야한다 생각했다. 다르게 구성해야하는 것은 무엇입니까?