Upgrade to mariadb 10. Force rebuild the gem mysl2 with mariad1- native library. Use option: -with-mysql-dir=/usr/local/Cellar/mariadb/10.0.11