|
@@ -33,6 +33,11 @@ UPGRADE FROM iEat 1.0 =================================================
|
|
|
|
|
|
|
|
FIRST-TIME DATABASE CREATION ==========================================
|
|
FIRST-TIME DATABASE CREATION ==========================================
|
|
|
|
|
|
|
|
|
|
+ First, you must copy the common libraries to the appropriate
|
|
|
|
|
+ directory.
|
|
|
|
|
+
|
|
|
|
|
+ $ cp lib/javamail/*.jar $CATALINA_HOME/lib
|
|
|
|
|
+
|
|
|
You must initialize your database for first-time use. Currently
|
|
You must initialize your database for first-time use. Currently
|
|
|
PostgreSQL 7.x or later and MySQL 4.1 or later are directly
|
|
PostgreSQL 7.x or later and MySQL 4.1 or later are directly
|
|
|
supported:
|
|
supported:
|
|
@@ -63,6 +68,10 @@ FIRST-TIME DATABASE CREATION ==========================================
|
|
|
Again, you may need to pass the -U flag to specify a Postgres
|
|
Again, you may need to pass the -U flag to specify a Postgres
|
|
|
super-user account to execute the command as. The database
|
|
super-user account to execute the command as. The database
|
|
|
must be created with the Unicode encoding!
|
|
must be created with the Unicode encoding!
|
|
|
|
|
+
|
|
|
|
|
+ 3) Copy drivers into common directory
|
|
|
|
|
+
|
|
|
|
|
+ $ cp lib/jdbc/postgresql-8.3-603.jdbc3.jar $CATALINA_HOME/lib
|
|
|
|
|
|
|
|
MYSQL ---------------------------------------------------------------
|
|
MYSQL ---------------------------------------------------------------
|
|
|
|
|
|
|
@@ -97,6 +106,9 @@ FIRST-TIME DATABASE CREATION ==========================================
|
|
|
|
|
|
|
|
mysql> flush privileges;
|
|
mysql> flush privileges;
|
|
|
|
|
|
|
|
|
|
+ 4) Copy drivers into common directory
|
|
|
|
|
+
|
|
|
|
|
+ $ cp lib/jdbc/mysql-connector-java-5.1.7-bin.jar $CATALINA_HOME/lib
|
|
|
|
|
|
|
|
FIRST-TIME DATABASE SETUP =============================================
|
|
FIRST-TIME DATABASE SETUP =============================================
|
|
|
|
|
|
|
@@ -116,6 +128,8 @@ FIRST-TIME DATABASE SETUP =============================================
|
|
|
- setup/sql/postgres/create.sql
|
|
- setup/sql/postgres/create.sql
|
|
|
- setup/sql/postgres/load.sql
|
|
- setup/sql/postgres/load.sql
|
|
|
- setup/sql/postgres/load-ingredients.sql
|
|
- setup/sql/postgres/load-ingredients.sql
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
MYSQL ---------------------------------------------------------------
|
|
MYSQL ---------------------------------------------------------------
|
|
|
|
|
|
|
@@ -142,7 +156,7 @@ FIRST-TIME APPLICATION SERVER SETUP ===================================
|
|
|
|
|
|
|
|
For Tomcat 5.5 or later, create a file located at
|
|
For Tomcat 5.5 or later, create a file located at
|
|
|
|
|
|
|
|
- <TOMCAT HOME/conf/Catalina/localhost/ieat.xml
|
|
|
|
|
|
|
+ /etc/tomcat8/Catalina/localhost/ieat.xml
|
|
|
|
|
|
|
|
The structure of this file should look like this:
|
|
The structure of this file should look like this:
|
|
|
|
|
|
|
@@ -152,7 +166,8 @@ FIRST-TIME APPLICATION SERVER SETUP ===================================
|
|
|
type="javax.sql.DataSource" scope="Shareable"
|
|
type="javax.sql.DataSource" scope="Shareable"
|
|
|
driverClassName="org.postgresql.Driver"
|
|
driverClassName="org.postgresql.Driver"
|
|
|
url="jdbc:postgresql://localhost:5432/ieat"
|
|
url="jdbc:postgresql://localhost:5432/ieat"
|
|
|
- username="ieat" password="ieat" maxWait="5000"
|
|
|
|
|
|
|
+ username="ieat" maxWait="5000" validationQuery="select 1"
|
|
|
|
|
+ password="ieat"
|
|
|
maxActive="5" maxIdle="2" removeAbandoned="true"
|
|
maxActive="5" maxIdle="2" removeAbandoned="true"
|
|
|
removeAbandonedTimeout="60" logAbandoned="true"
|
|
removeAbandonedTimeout="60" logAbandoned="true"
|
|
|
/>
|
|
/>
|