mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:25:50 +00:00
Update mysql readme
This commit is contained in:
parent
837483f1d0
commit
8b76a54814
2 changed files with 7 additions and 11 deletions
|
@ -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 @@
|
||||||
|
|
||||||
@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.
|
|
||||||
|
|
Loading…
Reference in a new issue