Forum: JRuby No suitable driver found for jdbc:mysql

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C3a6aaf881f46485a4f2b834e4635066?d=identicon&s=25 Nirmal Mahiya (nmahiya)
on 2016-07-07 09:23
Hi,

I am a new jruby user. I am using jruby-complete-1.7.11
I have got a script which is connecting to MySQL db and fetching some
data.

While executing I am getting error "No suitable driver found for
jdbc:mysql"

Need help to solve this error.
0fa73332c8e4a3b06ea439fd3f034322?d=identicon&s=25 Ronald Fischer (rovf)
on 2016-07-25 16:53
Doesn't look like a JRuby problem to me. My guess is that the connect
also doesn't work from pure Java - did you try this? In this case, I
would conclude that the MySql database driver is missing.
This topic is locked and can not be replied to.