From 8b76a54814e5e3bee8d14656c04b3a6b33c39c89 Mon Sep 17 00:00:00 2001
From: Dave Syer <dsyer@pivotal.io>
Date: Mon, 5 Dec 2016 12:04:53 +0000
Subject: [PATCH] Update mysql readme

---
 src/main/resources/application.properties         |  3 ++-
 .../db/mysql/petclinic_db_setup_mysql.txt         | 15 +++++----------
 2 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index c1a7ac2..3562d7d 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -17,7 +17,8 @@ management.contextPath=/manage
 
 # Logging
 logging.level.org.springframework=INFO
-logging.level.org.springframework.web=DEBUG
+# logging.level.org.springframework.web=DEBUG
+# logging.level.org.springframework.context.annotation=TRACE
 
 # Active Spring profiles
 spring.profiles.active=production
diff --git a/src/main/resources/db/mysql/petclinic_db_setup_mysql.txt b/src/main/resources/db/mysql/petclinic_db_setup_mysql.txt
index 251562e..6b3014b 100644
--- a/src/main/resources/db/mysql/petclinic_db_setup_mysql.txt
+++ b/src/main/resources/db/mysql/petclinic_db_setup_mysql.txt
@@ -4,21 +4,16 @@
 
 @author Sam Brannen
 @author Costin Leau
+@author Dave Syer
 
 --------------------------------------------------------------------------------
 
 1) Download and install the MySQL database (e.g., MySQL Community Server 5.1.x),
    which can be found here: http://dev.mysql.com/downloads/
 
-2) Download Connector/J, the MySQL JDBC driver (e.g., Connector/J 5.1.x), which
-   can be found here: http://dev.mysql.com/downloads/connector/j/
-   Copy the Connector/J JAR file (e.g., mysql-connector-java-5.1.5-bin.jar) into
-   the db/mysql directory. Alternatively, uncomment the mysql-connector from the
-   Petclinic pom.
+2) Add the MySQL JDBC driver  to your classpath.
 
-3) Create the PetClinic database and user by executing the "db/mysql/initDB.sql"
-   script.
+3) Set "database=mysql" in "application.properties"
 
-4) Open "src/main/resources/spring/data-access.properties"; comment out all properties in the
-   "HSQL Settings" section; uncomment all properties in the "MySQL Settings"
-   section.
+4) Create the PetClinic database and user by executing the "db/mysql/{schema,data}.sql"
+   scripts (or set "spring.datasource.initialize=true" the first time you run the app.
-- 
GitLab