Add MysqlAdapter to apply method to support jruby.