Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 628 Bytes

readme.md

File metadata and controls

12 lines (12 loc) · 628 Bytes

Configuration

  • Create a schema into MySql (will be used into the datasource definition).
  • Download the MySQL connector and copy the jar into tomcat/lib
  • Edit tomcat/conf/context.xml. Add a datasource into <Context>. Example:
    <Resource name="jdbc/cardTracker"
              auth="Container" type="javax.sql.DataSource"
              maxActive="100" maxIdle="30" maxWait="10000"
              username="mage" password="magepass"
              driverClassName="com.mysql.jdbc.Driver"
              url="jdbc:mysql://localhost:3306/cardtracker"/>