Percona向后兼容MySQL吗? Ruby in Rails案例 [英] Is Percona backwards compatible with MySQL? The Ruby in Rails Case

查看:142
本文介绍了Percona向后兼容MySQL吗? Ruby in Rails案例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在启动Ruby on Rails项目,并且对使用Percona作为我的DBMS感兴趣. 我读过Percona与MySQL工具完全兼容

I'm starting a Ruby on Rails project and I'm interested in using Percona as my DBMS. I've read that Percona is fully compatible with MySQL tooling

我想知道我是否可以在Percona上使用Ruby on Rails工具(使用MySQL支持)?

推荐答案

只要拥有mysql客户端库,您就应该能够构建mysql gem,它是(通过活动记录)与mysql交互的接口轨

As long as you have the mysql client libraries you should be able to build the mysql gem which is the interface rails (through active record) uses to interact with mysql.

像这样构建gem时,您可能必须通过percona mysql_config:

You may have to pass the percona mysql_config when building the gem like so:

gem install mysql -- --with-mysql-config=/usr/local/percona-xtradb/bin/mysql_config

如果您使用的是mysql2 gem,则应该"(我认为)

If you are using the mysql2 gem you "shouldn't" need to do this (I think)

这篇关于Percona向后兼容MySQL吗? Ruby in Rails案例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆