0
votes

I'm trying to update the hello-slick-3.0 application downloaded using typesafe activator to use mysql rather than the h2 in-mem database. I've changed all the references to h2 to import import slick.driver.MySQLDriver.api._, but I don't know how to force the correct version of this driver at runtime. I'm getting this error at runtime:

background log: info: Running HelloSlick background log: error: Exception in thread "main" java.sql.SQLException: No suitable driver

I wish to start using the async mysql driver with scala/slick.

1
I'm assuming I don't want to be using mysql-connector-java, since it is not async. What driver do I use, and where do I find it?eswenson

1 Answers

0
votes

You need to use standard MySQL JDBC driver, for example:

libraryDependencies += "mysql" % "mysql-connector-java" % "5.1.35"

Slick 3 implements "asynchrony" itself using Reactive Streams.