InnoDB를 사용하지 않고 실행중인 MySQL 서버가 있습니다 (성능상의 이유로),이 설정으로 Rails 3 (mysql2
어댑터 사용)을 사용할 수없는 것 같습니다.InnoDB없이 MySQL MyISAM 모드에서 Rails 3을 실행할 수 없습니까?
여기 내 테스트 마이그레이션입니다 :
class CreateTxts < ActiveRecord::Migration
def change
create_table(:txts, :options => 'ENGINE=MyISAM') do |t|
t.timestamps
end
end
end
그리고 여기에 오류 발생 :
>rake db:migrate
rake aborted!
Mysql2::Error: Unknown storage engine 'InnoDB': CREATE TABLE `schema_migrations`
(`version` varchar(255) NOT NULL) ENGINE=InnoDB
가 해결 here을 설명했지만,이 중 하나 (내가 Mysql2Adapter에 MysqlAdapter을 수정했다 작동하지 않는 것 내 설정과 일치).
죄송합니다. 저는 Rails의 newb입니다. 어떤 도움을 많이 주시면 감사하겠습니다 :
'Module ActiveRecord module ConnectionAdapters class MysqlAdapter'를'class ActiveRecord :: ConnectionAdapters :: MysqlAdapter'로 대체하면 더 짧아 질 수 있습니다. –