Please install mysql adapter 'gem install activerecord-mysql-adapter'

前端 未结 16 1476
挽巷
挽巷 2020-12-28 12:23

I\'m having trouble finding a solution to this problem. I\'m getting the error:

Please install the mysql adapter: \'gem install activerecord-mysql-adapter\'
         


        
16条回答
  •  旧巷少年郎
    2020-12-28 12:52

    Step 1. gem 'mysql2', "~>0.3.11" instead of gem 'mysql2' in Gemfile

    Step 2. putting mysqllib.dll (available at mysql installation C:\wamp\bin\mysql\mysql5.5.24\lib ) in the C:\ruby2.0.0\bin folder solved the rake db:migrate problem and successfully connected my rails with mysql (database.yml contains mysql2)

    I'm running windows 7, 64bit, mysql 64bit, ruby 2.0.0 [x64-mingw32]

    Thanks you all for your inputs.

提交回复
热议问题