RHEL服务器中的MySQL客户端库版本不正确

时间:2014-09-16 11:45:01

标签: mysql ruby-on-rails ruby rhel7

我在RHEL 7服务器上安装了mysql。我已经部署了我的rails代码。当我运行迁移时,我收到以下错误。我安装了mysql,我希望连接到mysql和not mariadb

rake aborted!
Incorrect MySQL client library version! 
This gem was compiled for 5.5.37-MariaDB but the client library is 5.6.20.

我该怎么做才能解决这个问题?

编辑:

database.yml中:

default: &default
  adapter: mysql2
  encoding: utf8
  pool: 5
  username: root
  password:
  socket: /tmp/mysql.sock

development:
  <<: *default
  database: blah_development

0 个答案:

没有答案