The mysql
jewel was developed and tested only against MRI (Ruby 1.8). Thus, for most of their implementation, C extensions are used for the old style. Although they are technically supported by JRuby, they are slow and error prone. Therefore, do not use them.
If you use JRuby, you are much better off using JDBC adapters that use the java database interface, and thus are much faster and much better supported. The high-level interface (for example, used by Rails) is about the same, you should not notice the differences.
So, for JRuby you must use the jdbc-mysql
gem, or - if you use Rails - the activerecord-jdbcmysql-adapter
, which requires this gem and adds the appropriate database adapter.
source share