我已经在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.
我该怎么做才能解决这个问题?
编辑:
数据库.yml:
default: &default
adapter: mysql2
encoding: utf8
pool: 5
username: root
password:
socket: /tmp/mysql.sock
development:
<<: *default
database: blah_development