Use MariaDB instead of MySQL in my Rails project

后端 未结 6 1313
春和景丽
春和景丽 2021-02-05 07:25

How can I use MariaDB instead of MySQL in my Rails project?

When I try to install mysql2 gem it returns error,because mysqlclient was not found.

Here some soluti

6条回答
  •  生来不讨喜
    2021-02-05 08:00

    As of Rails 5 (currently still in beta), MariaDB is officially supported, which I think should ease the implementation. Although I haven't tried it myself.

    You can read about it in the blogpost on the Rails weblog:

    http://weblog.rubyonrails.org/2016/4/16/this-week-in-rails-mariadb-action-cable-and-more/

提交回复
热议问题