In order to run this project you need to follow the next steps:
-
Install MySQL: https://dev.mysql.com/downloads/installer/
-
Connect to MySQL database as Root user:
$ sudo mysql --password
-
To create a new database, run the following commands at the mysql prompt:
mysql> create database db_example; -- Creates the new database mysql> create user 'springuser'@'%' identified by 'ThePassword'; -- Creates the user mysql> grant all on db_example.* to 'springuser'@'%'; -- Gives all privileges to the new user on the newly created database
Reference: https://spring.io/guides/gs/accessing-data-mysql/