Updating tinyPM in Tomcat
1. Stop your Tomcat server.
2. Backup your database and backup .properties files (see tinyPM Backup). 3. Unzip tinyPM zip file to temporary directory (%TINYPM_TEMP_PATH%). 4. If the %TINYPM_TEMP_PATH%/sql/mysql contains update scripts for later versions of tinyPM, then run all scripts starting from your current version up to the target version on your tinyPM database (not all versions of tinyPM require database updates):
MySQL console - sample upgrade from v2.2.4 to v2.3 \u tinypmdb \. %TINYPM_TEMP_PATH%/sql/mysql/update_from_2.2.4_to_2.2.5.sql \. %TINYPM_TEMP_PATH%/sql/mysql/update_from_2.2.5_to_2.3.sql 5. Go to your tinyPM webapp directory and remove all its contents, so that the directory %CATALINA_HOME%/webapps/tinypm is empty. 6. Unzip new tinypm.war to your %CATALINA_HOME%/webapps/tinypm directory. 7. Copy the backuped *.properties files into: %CATALINA_HOME%/webapps/tinypm/WEB-INF/classes/ If you didn't do a backup, you need to edit the hibernate.properties file and setup your database connection settings again.
8. Start your Tomcat server. Congratulations! Your new tinyPM version is up and running! TroubleshootingBy default tinyPM uses ERROR logging level to avoid flooding your log files. If you have problems with your tinyPM installation you can change logging level to a more verbose INFO level by editing Log4J settings in: %CATALINA_HOME%/webapps/tinypm/WEB-INF/classes/log4j.properties |