Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Play Framework 2 example app
Java Scala
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
conf
project
public
test
.gitignore
README.md

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.