Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to connect to mysql? #5033

Closed
dersar00 opened this issue Feb 6, 2018 · 2 comments
Closed

How to connect to mysql? #5033

dersar00 opened this issue Feb 6, 2018 · 2 comments

Comments

@dersar00
Copy link

dersar00 commented Feb 6, 2018

Hello!
I'm have a trouble with finding info about connecting to mysql database if I'm using jruby.
How I can do it? I need to connect mysql to one of my .rb file.

@mprins
Copy link
Contributor

mprins commented Feb 6, 2018

@kares
Copy link
Member

kares commented Feb 7, 2018

you either setup the gem 'activerecord-jdbcmysql-adapter' n your Gemfile (platform: :jruby) for Rails
... or simply use another library such as Sequel which has JRuby support for almost all of its DB support.
than obviously you could also use the Java standard JDBC with MySQL's driver (which the above all are using behind the scene). your question is too generic and maybe would have been a better suit for SO ...

@kares kares closed this as completed Feb 7, 2018
@kares kares added this to the Invalid or Duplicate milestone Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants