Clicky

Play - com.mysql.jdbc.Driver driver not found

July 25, 2015

Problem:

Configuration error

Driver not found: [com.mysql.jdbc.Driver]
In /Users/guybrushtreepwood/git/Play/assessment-joel/conf/application.conf:33
# You can declare as many datasources as you want.
# By convention, the default datasource is named `default`

db.default.driver=com.mysql.jdbc.Driver
db.default.url="jdbc:mysql://localhost:3306/play_assessment_db”
db.default.user=play_user
db.default.password="Pl@y”
db.default.logStatements=true

Solution:

  1. Add libraryDependencies += “mysql” % “mysql-connector-java” % “5.1.21” to build.sb located in the root of your project
  2. Run “sh activator clean” (MACOS)
  3. Run “sh activator dependencies (MACOS)