petclinic_db_setup_mysql.txt
上传用户:dezhong
上传日期:2022-08-10
资源大小:167k
文件大小:1k
源码类别:

Java编程

开发平台:

Java

  1. ================================================================================
  2. ===        Spring PetClinic sample application - MySQL Configuration         ===
  3. ================================================================================
  4. @author Sam Brannen
  5. --------------------------------------------------------------------------------
  6. 1) Download and install the MySQL database (e.g., MySQL Community Server 5.0.x),
  7.    which can be found here: http://dev.mysql.com/downloads/
  8. 2) Download Connector/J, the MySQL JDBC driver (e.g., Connector/J 5.1.x), which
  9.    can be found here: http://dev.mysql.com/downloads/connector/j/
  10.    Copy the Connector/J JAR file (e.g., mysql-connector-java-5.1.5-bin.jar) into
  11.    the db/mysql directory.
  12. 3) Create the PetClinic database and user by executing the "db/mysql/createDB.txt"
  13.    script.
  14. 4) Open "build.properties" in PetClinic's root directory and follow the
  15.    instructions in section: "NOTE: To CONFIGURE the DATABASE...".
  16. 5) If you did not already do so in step 4, open "src/jdbc.properties", comment
  17.    out all properties in the "HSQL Settings" section, uncomment all properties
  18.    in the "MySQL Settings" section, and verify that your connection settings
  19.    are consistent in both "build.properties" and "src/jdbc.properties".