我在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