今天在链接数据库的时候出现以下错误:
[html]
incorrect MySQL client library version! This gem was compiled for 6.0.0 but the client library is 5.5.20.
[/html]
看一下解决办法:
从mysql官方http://dev.mysql.com/downloads/mysql下载 mysql-connector-c-noinstall-6.0.2-win32 解压到e:/。注意根据自己的实际情况下载相对应的版本,这里使用非安装版。
or Ruby 1.9.2:
[html]
gem install mysql --platform=ruby -- --with-mysql-dir=e:/mysql-connector-c-noinstall-6.0.2-win32
[/html]
for Ruby 1.9.3: (showing mysql2 variant)
[html]
gem prist...