Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- This is the Tomcat Context Setup File
  3. ("Context" = "this web application") -->
  4. <Context>
  5. <!-- This configures the "Production Instance" of our connection pool.
  6. Change the following when you are developing:
  7.  
  8. Username: (usually your unity id)
  9. Password: (db password, probably not your unity password)
  10. URL: jdbc:mysql://<server name>/<database name>
  11. + Use "localhost" or "aramis.csc.ncsu.edu" depending on which server you're using
  12. + Change the database name to the correct name (depending on which server you're using)
  13.  
  14. Nothing else here needs to change during development.
  15. Do NOT change the "name=jdbc/itrust"
  16. -->
  17. <Resource
  18. username="root"
  19. password=""
  20. url="jdbc:mysql://localhost:3306/iTrust?createDatabaseIfNotExist=true"
  21. name="jdbc/itrust"
  22. auth="Container"
  23. type="javax.sql.DataSource"
  24. driverClassName="com.mysql.jdbc.Driver"
  25. maxActive="15"
  26. maxIdle="4"
  27. validationQuery="Show Tables"/>
  28.  
  29. <!-- Authentication Realms uses the above resource to handle credentials
  30. Do not edit. -->
  31. <Realm
  32. className="org.apache.catalina.realm.DataSourceRealm"
  33. localDataSource="true"
  34. debug="99"
  35. dataSourceName="jdbc/itrust"
  36. userTable="Users"
  37. userNameCol="MID"
  38. userCredCol="Password"
  39. userRoleTable="Users"
  40. roleNameCol="Role" />
  41. </Context>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement