Play+scala+slick+mysql

app.config file like this :-

db {

default.driver =“org.h2.Driver”
default.url = “jdbc:h2:mem:play;DB_CLOSE_DELAY=-1”

default.username =“root”

default.password = “password”

}
play.evolutions.db.default.enabled = true
slick.dbs.default.profile = “slick.jdbc.MySQLProfile$”
slick.dbs.default.db.profile = “com.mysql.jdbc.Driver”
slick.dbs.default.db.url = “jdbc:mysql://localhost/scala”
slick.dbs.default.db.user = “root”
slick.dbs.default.db.password = “password”

built.sbt like this :-

libraryDependencies += guice
libraryDependencies += “com.typesafe.play” %% “play-slick” % “4.0.2”
libraryDependencies += “com.typesafe.play” %% “play-slick-evolutions” % “4.0.2”
ibraryDependencies += “com.h2database” % “h2” % “1.4.199”

libraryDependencies ++= Seq(
jdbc,
specs2 % Test,

“org.scalatestplus.play” %% “scalatestplus-play” % “4.0.3”,
“com.typesafe.play” %% “play-json” % “2.6.9”,
“mysql” % “mysql-connector-java” % “5.1.34”,
)

exception :-

SQLTransientConnectionException: db - Connection is not available, request timed out after 30001ms.

java.sql.SQLTransientConnectionException: db - Connection is not available, request timed out after 30001ms.
com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:676)
com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:190)
com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:155)
com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:100)
slick.jdbc.hikaricp.HikariCPJdbcDataSource.createConnection(HikariCPJdbcDataSource.scala:14)
play.api.db.slick.evolutions.internal.DBApiAdapter$DatabaseAdapter.getConnection(DBApiAdapter.scala:57)
play.api.db.evolutions.DatabaseEvolutions.databaseEvolutions(EvolutionsApi.scala:142)
play.api.db.evolutions.DatabaseEvolutions.scripts(EvolutionsApi.scala:120)
play.api.db.evolutions.DatabaseEvolutions.scripts(EvolutionsApi.scala:135)
play.api.db.evolutions.DefaultEvolutionsApi.scripts(EvolutionsApi.scala:99)
play.api.db.evolutions.ApplicationEvolutions$.$anonfun$runEvolutions$1(ApplicationEvolutions.scala:206)
play.api.db.evolutions.ApplicationEvolutions$.withLock(ApplicationEvolutions.scala:232)
play.api.db.evolutions.ApplicationEvolutions$.runEvolutions(ApplicationEvolutions.scala:202)
play.api.db.evolutions.ApplicationEvolutions.$anonfun$start$1(ApplicationEvolutions.scala:68)
play.api.db.evolutions.ApplicationEvolutions.$anonfun$start$1$adapted(ApplicationEvolutions.scala:63)
scala.collection.immutable.List.foreach(List.scala:312)
play.api.db.evolutions.ApplicationEvolutions.start(ApplicationEvolutions.scala:63)
play.api.db.evolutions.ApplicationEvolutions.(ApplicationEvolutions.scala:109)
play.api.db.evolutions.ApplicationEvolutionsProvider.get$lzycompute(EvolutionsModule.scala:68)
play.api.db.evolutions.ApplicationEvolutionsProvider.get(EvolutionsModule.scala:61)
play.api.db.evolutions.ApplicationEvolutionsProvider.get(EvolutionsModule.scala:51)
com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:85)
com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:77)
com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:59)
com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:61)
com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:168)
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:39)
com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:211)
com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:182)
com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
com.google.inject.Guice.createInjector(Guice.java:87)
com.google.inject.Guice.createInjector(Guice.java:78)
play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:201)
play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:156)
play.api.inject.guice.GuiceApplicationLoader.load(GuiceApplicationLoader.scala:22)
play.core.server.DevServerStart$$anon$1.$anonfun$reload$3(DevServerStart.scala:193)
play.utils.Threads$.withContextClassLoader(Threads.scala:22)
play.core.server.DevServerStart$$anon$1.reload(DevServerStart.scala:185)
play.core.server.DevServerStart$$anon$1.get(DevServerStart.scala:144)
play.core.server.AkkaHttpServer.handleRequest(AkkaHttpServer.scala:304)
play.core.server.AkkaHttpServer.$anonfun$createServerBinding$1(AkkaHttpServer.scala:189)
akka.stream.impl.fusing.MapAsync$$anon$30.onPush(Ops.scala:1261)
akka.stream.impl.fusing.GraphInterpreter.processPush(GraphInterpreter.scala:523)
akka.stream.impl.fusing.GraphInterpreter.execute(GraphInterpreter.scala:409)
akka.stream.impl.fusing.GraphInterpreterShell.runBatch(ActorGraphInterpreter.scala:606)
akka.stream.impl.fusing.GraphInterpreterShell$AsyncInput.execute(ActorGraphInterpreter.scala:485)
akka.stream.impl.fusing.GraphInterpreterShell.processEvent(ActorGraphInterpreter.scala:581)
akka.stream.impl.fusing.ActorGraphInterpreter.akka$stream$impl$fusing$ActorGraphInterpreter$$processEvent(ActorGraphInterpreter.scala:749)
akka.stream.impl.fusing.ActorGraphInterpreter$$anonfun$receive$1.applyOrElse(ActorGraphInterpreter.scala:764)
akka.actor.Actor.aroundReceive(Actor.scala:539)
akka.actor.Actor.aroundReceive$(Actor.scala:537)
akka.stream.impl.fusing.ActorGraphInterpreter.aroundReceive(ActorGraphInterpreter.scala:671)
akka.actor.ActorCell.receiveMessage(ActorCell.scala:612)
akka.actor.ActorCell.invoke(ActorCell.scala:581)
akka.dispatch.Mailbox.processMailbox(Mailbox.scala:268)
akka.dispatch.Mailbox.run(Mailbox.scala:229)
akka.dispatch.Mailbox.exec(Mailbox.scala:241)
akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)