Skip to content
A Play Framework 2 example app
Java Scala
Find file

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.