OrderlyStats SE - Database Upgrade Instructions

This All-In-One package contains a basic Java database server, HypersonicSQL, 
that is adequate for your evaluation needs, but should be upgraded to a more
robust solution for production systems.

OrderlyStats SE supports connectivity to the MySQL and PostgreSQL
open-source database engines, as well as HypersonicSQL, so you can choose
either of these.

We recommend PostgreSQL as the most reliable database choice for 
production environments.  

There are some known deadlock issues with the current official release 
of MySQL drivers.

To switch to a different database engine, first follow the database 
installation instructions at 

http://www.orderlyq.com/orderlystatsse/install1.html

Once you have installed your database server, you will need to follow the
database creation instructions at
 
http://www.orderlyq.com/orderlystatsse/install4.html

and install the JDBC drivers as described on that page.

Finally, you will need to edit the file at 
$ORDERLY_HOME/tomcat/webapps/orderlystatsse/WEB-INF/OrderlyStatsSE.xml 
Comment out the the HypersonicSQL section so it looks like this:

<!-- HypersonicSQL (commented out) -->
<!-- BEGIN COMMENT
       <DatabaseService name="db"
             url="jdbc:hsqldb:hsql://localhost/orderlystats"
             driver="org.hsqldb.jdbc.JDBCDriver"
             username="SA"
             password="" />
END COMMENT -->

You will also need to uncomment either the PostgreSQL entry, or the MySQL entry
(but not both!), depending on which database engine you have chosen.  Do this 
by deleting the <!-- and --> marks at each end of the relevant stanza, 
and save the file.

Finally restart OrderlyStatsSE with

/etc/init.d/orderlystatsse restart

You can continue to use the /etc/init.d/orderlystatsse script to start and stop OrderlyStats - just edit the script and comment out the indicated line to prevent it from starting HypersonicSQL.
