Make MySQL configuration files/docs consistent

- use petclinic as the db name and root password

Fixes #322
This commit is contained in:
trisberg 2018-05-12 12:28:44 -04:00 committed by Dave Syer
parent dd5b080d48
commit 6905e38c1f
2 changed files with 6 additions and 6 deletions

View file

@ -1,9 +1,9 @@
mysql:
image: mysql
image: mysql:5.7
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=test
- MYSQL_ROOT_PASSWORD=petclinic
- MYSQL_DATABASE=petclinic
volumes:
- "./conf.d:/etc/mysql/conf.d:ro"
- "./conf.d:/etc/mysql/conf.d:ro"

View file

@ -1,7 +1,7 @@
# database init, supports mysql too
database=mysql
spring.datasource.url=jdbc:mysql://localhost/test
spring.datasource.url=jdbc:mysql://localhost/petclinic
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.password=petclinic
# Uncomment this the first time the app runs
# spring.datasource.initialization-mode=always