Skip to content

Commit a4a634b

Browse files
committedApr 23, 2016
Update README.md
1 parent e31d3fe commit a4a634b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
 

Diff for: ‎README.md

+23
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,29 @@ A helper script allows you build `*.java` source files, then build, then restart
7171
./tomcat/bin/cataling.sh start
7272
```
7373

74+
# Important - Update the UserName Password
75+
76+
Go into the `./tomcat/webapps/survey/WEB-INF/classes/survey/DatabaseAccess.java` file
77+
78+
Edit the lines to change the user from `root` to `cs612`
79+
80+
Should look like this:
81+
82+
```java
83+
String jdbcDriver = "com.mysql.jdbc.Driver";
84+
String dbURL = "jdbc:mysql://localhost/test";
85+
String user = "cs612";
86+
String password = "123456";
87+
```
88+
89+
Recompile, then restart Tomcat...
90+
91+
```bash
92+
./buildJava.sh
93+
./tomcat/bin/catalina.sh stop
94+
./tomcat/bin/cataling.sh start
95+
```
96+
7497

7598
Note: JSP files if changes are immediately reprocessed and reflected within Tomcat.
7699
Class files, sourced from Java files, requires a "restart" of Tomcat - that is what the `./tomcat/bin/cataling stop/start` provides.

0 commit comments

Comments
 (0)
Please sign in to comment.