当前位置: 代码迷 >> 综合 >> Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter`
  详细解决方案

Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter`

热度:45   发布时间:2024-01-04 16:35:05.0

环境: linux  ruby1.9.2   rails 3.0.5   mysql2 0.3.2

遇到问题:Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter`

 

解决方法:

gem uninstall mysql2

 then

gem install mysql2 -v 0.2.7

 

参考:http://stackoverflow.com/questions/5840742/version-of-mysql2-0-3-2-doesnt-ship-with-the-activerecord-adapter-bundled-anym

 

“The problem is because you are trying to install the lastet version of mysql2 wich is incompatible with rails 3.0.x version ”

 

做ROR, 版本的问题 真让人头疼

  相关解决方案