windows下Ruby使用mysql时候报错:
?
monospace, serif;">Incorrect MySQL client library version! This gem was compile
d for 6.0.0 but the client library is 5.1.45
经过查找找到了解决方案:
1. 下载mysql-connector-c-noinstall-6.0.2-win32.zip
http://dev.mysql.com/downloads/connector/c/
2. 解压缩mysql-connector-c-noinstall-6.0.2-win32.zip,将lib\libmysql.dll 拷贝到Ruby的bin目录下
?
Mysql的Gem包安装比较顺利,gem install mysql 即可。
?
?
?