Skip to content
Snippets Groups Projects
Commit 8b76a548 authored by Dave Syer's avatar Dave Syer
Browse files

Update mysql readme

parent 837483f1
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,8 @@ management.contextPath=/manage ...@@ -17,7 +17,8 @@ management.contextPath=/manage
# Logging # Logging
logging.level.org.springframework=INFO 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 # Active Spring profiles
spring.profiles.active=production spring.profiles.active=production
...@@ -4,21 +4,16 @@ ...@@ -4,21 +4,16 @@
@author Sam Brannen @author Sam Brannen
@author Costin Leau @author Costin Leau
@author Dave Syer
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
1) Download and install the MySQL database (e.g., MySQL Community Server 5.1.x), 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/ 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 2) Add the MySQL JDBC driver to your classpath.
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.
3) Create the PetClinic database and user by executing the "db/mysql/initDB.sql" 3) Set "database=mysql" in "application.properties"
script.
4) Open "src/main/resources/spring/data-access.properties"; comment out all properties in the 4) Create the PetClinic database and user by executing the "db/mysql/{schema,data}.sql"
"HSQL Settings" section; uncomment all properties in the "MySQL Settings" scripts (or set "spring.datasource.initialize=true" the first time you run the app.
section.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment