#2013 new
Fraser Hardy

Second multidb database: No suitable driver found

Reported by Fraser Hardy | January 28th, 2016 @ 03:27 PM

Please include as much relevant information as possible including the exact framework version you're using and a code snippet that reproduces the problem. WARNING: Do not fill bugs related describing security vulnerabilities. Email directly guillaume dot bort at gmail dot com for that.

Framework version: 1.4.1
Platform you're using: Mac OSX 11

Reproduction steps:

Set a second database connection using just the db configuration. e.g


The first database connects fine, however the 2nd one results in this error:

ERROR | play-thread-1 | 28 Jan 2016 14:27:11,035 | Database [stats] Cannot connected to the database : No suitable driver found for mysql://user:pass@localhost/mystatsdb
java.sql.SQLException: No suitable driver found for mysql://user:pass@localhost/mystatsdb
at java.sql.DriverManager.getConnection(DriverManager.java:596) at java.sql.DriverManager.getConnection(DriverManager.java:215) at play.db.DBPlugin.onApplicationStart(DBPlugin.java:132) at play.plugins.PluginCollection.onApplicationStart(PluginCollection.java:515) at play.Play.start(Play.java:537) at play.Play.detectChanges(Play.java:653) at play.Invoker$Invocation.init(Invoker.java:199) at Invocation.HTTP Request(Play!)


It seems the only workaround is to specify the database settings for additional databases to use:


This is fine, however its causing a bit of an issue with the way our deployment scripts are used to setting the database configs for each environment. We're having to workaround this issue at the moment.

Comments and changes to this ticket

  • Fraser Hardy

    Fraser Hardy April 28th, 2016 @ 03:50 PM

    Hi, Do you have any update on this issue yet?

  • Ericlkelly

    Ericlkelly March 8th, 2018 @ 05:49 AM

    Truth is told your creative writing capacities have motivated me to begin my own blog now. Truly the blogging is spreading its wings quickly. Your write up is a fine example of it. It was crystal clear, continue sharing. For more info you can use this best essay writing service to having a wonderful assistant in writing and even you can get the guidelines too.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2>Play framework</h2>

Play makes it easier to build Web applications with Java. It is a clean alternative to bloated Enterprise Java stacks. It focuses on developer productivity and targets RESTful architectures. Learn more on the <a href="http://www.playframework.org">http://www.playframework.org</a> website.<br><br>

<h2>Source code is hosted on github</h2>Check out our repository at <a href="http://github.com/playframework/play">http://github.com/playframework/play</a><br><br>

<h2>Contributing, creating a patch</h2> Please read the <a href="http://play.lighthouseapp.com/projects/57987/contributor-guide">contributor guide</a><br><br>

<h2>Reporting Security Vulnerabilities</h2> Since all bug reports are public, please report any security vulnerability directly to <em>guillaume dot bort at gmail dot com</em>.<br><br>

<h2>Creating a bug report</h2> Bug reports are incredibly helpful, so take time to report bugs and request features in our ticket tracker. We’re always grateful for patches to Play’s code. Indeed, bug reports with attached patches will get fixed far quickly than those without any.<br><br>

Please include as much relevant information as possible including the exact framework version you're using and a code snippet that reproduces the problem.<br><br>

Don't have too much expectations. Unless the bug is really a serious "everything is broken" thing, you're creating a ticket to start a discussion. Having a patch (or a branch on Github we can pull from) is better, but then again we'll only pull high quality branches that make sense to be in the core of Play.