Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Play Framework 2 example app
branch: master
Failed to load latest commit information.
app supporting changes for Ebean
conf upgraded to Play 2.0.2, switched to MySQL database
project upgraded to Play 2.0.2, switched to MySQL database
public switched mainLang arg from SCALA to JAVA, removed some quotes from la…
test
.gitignore init
README.md upgraded to Play 2.0.2, switched to MySQL database

README.md

Finances

Play Framework 2.x sample app to support a series of Play tutorial blog posts.

MySQL Setup

Before using MySQL as the database for the Finances app, we first need to create the finances user and database:

First, connect as root:

mysql --user=root --password=YOURPASSWORD mysql

Second, create the finances user:

CREATE USER finances @'%' IDENTIFIED BY 'finances';

Lastly, create the poweredman database and grant privileges to the poweredman user:

CREATE DATABASE finances;

GRANT ALL ON finances.* TO 'finances' @'%'  IDENTIFIED BY 'finances';
GRANT ALL ON finances.* TO 'finances' @'localhost'  IDENTIFIED BY 'finances';

FLUSH PRIVILEGES;

Test

mysql --user=finances --password=finances finances
Something went wrong with that request. Please try again.