RuntimeError with mysql2 and rails3 (bundler)

前端 未结 11 2127
花落未央
花落未央 2020-12-12 20:08

I get this error

`establish_connection\': Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (no such file to load -- active_record         


        
11条回答
  •  我在风中等你
    2020-12-12 21:02

    Also need to change adapter from mysql to mysql2 in database.yml as said here Install mysql2 gem on Snow Leopard for Rails 3 with rvm

    From:

    development: adapter: mysql

    To:

    development: adapter: mysql2

提交回复
热议问题