“错误的MySQL客户端库版本" [英] "Incorrect MySQL client library version"

查看:169
本文介绍了“错误的MySQL客户端库版本"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行rake assets:precompile

Incorrect MySQL client library version! This gem was compiled for 5.6.10 but the client library is 5.5.12.

MySQL是使用Homebrew安装的,版本为5.6.10.我可以本地连接到127.0.0.1上的数据库.

MySQL is installed using Homebrew and is version 5.6.10. I can connect to the database on 127.0.0.1 locally.

我已经尝试了以下方法:

I've tried the following with no luck:

ARCHFLAGS="-arch x86_64" gem install mysql2 -- –with-mysql-config=/usr/local/bin/mysql_config

似乎建议是针对那些客户端库"比Gem所针对的库更新的人们.我的问题恰恰相反.无法找出5.5.12的来源.有什么想法吗?

It seems that advice is for folks whose "client library" is newer than the one the Gem was compiled for. My issue is the opposite. Can't figure out where the 5.5.12 is coming from. Any ideas?

推荐答案

尝试:

gem uninstall mysql
gem uninstall mysql2

然后

bundle install

这篇关于“错误的MySQL客户端库版本"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆