In the posts I found browsing around I could not get the exact working configuration for my environment, so I think it can help someone out review the configuration steps I made to integrated MySQL db with Play!.
Open the file <project name>/project/Build.scala and add the MySQL connector dependency like in the following code:
val appDependencies = Seq( // Add your project dependencies here, javaCore, javaJdbc, javaEbean, "mysql" % "mysql-connector-java" % "5.1.18" )
In order to make Play aware of the new dependency and get the connector code stated previously, it's necessary run the dependency update job in the Play console, with the command dependencies:
Open the file <project name>/conf/application.conf and set the DB connection coordinates, for example:
db.default.driver=com.mysql.jdbc.Driver db.default.url="jdbc:mysql://localhost:3306/<dbname>" db.default.user="root" db.default.password=""
In the same configuration file- <project name>/conf/application.conf- uncomment the following line:
The app should work now, ... good luck!