As Carsten wrote it can be fetched from documentation, however here's a summary:
make sure you have the dependency configured in /project/Build.scala
val appDependencies = Seq(
// Add your project dependencies here,
"mysql" % "mysql-connector-java" % "5.1.18"
)
Add a proper config of the DB (replace default H2 config) in /conf/application.conf
:
(don't remove encoding from URL):
db.default.driver=com.mysql.jdbc.Driver
db.default.url="jdbc:mysql://localhost/your_db_name?characterEncoding=UTF-8"
db.default.user=your_login
db.default.password=your_pass
in the same file find and make sure this line is NOT commented:
ebean.default="models.*"
That's all, restart your app (or run in dev mode), then it will create a DDL and ask you to apply it.