Copy MySQL connector driver (custom-repository.properties suggests mysql-connector-java-5.0.3-bin.jar) to <Tomcat home>/common/lib
(I used mysql-connector-java-5.0.8-bin.jar which I downloaded from MySQL and built)
Increase Tomcat's Java heap allocation by adding this line set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx512m just after the line ending '...call '%CATALINA_HOME%\bin\setenv.bat', if present or extend the existing definition.
Check setenv.bat if it exists with JAVA_OPTS defined.
Start Tomcat - I use a custom script that ends up executing catalina.bat (just make sure catalina.bat is executed).
The installation is complete. Use Tomcat manager to start and stop run Alfresco.
Manual removal of Alfresco
The following steps remove files installed in the above process. As some of these files are common Tomcat files, you are advised to make a backup when an installed file overwrites an existing file so it can be restored when the Alfresco bundled files are removed.
Undeploy alfresco.war from tomcat (using Tomcat manager).
Remove the MySQL Alfresco database: mysql -uroot -ppassword -e 'drop database alfresco;.
Delete the installed files (carefully):
<Tomcat home>/webapps/alfresco <Tomcat home>/shared/classes/alfresco/ <Tomcat home>/common/endorsed/serializer.jar (if it wasn't there before the alfresco install) <Tomcat home>/common/endorsed/xalan.jar (if it wasn't there before the alfresco install) <Tomcat home>/common/lib/mysql-connector-java-5.0.8-bin.jar (if it wasn't there before the alfresco install) <Tomcat home>/bin/Win32NetBIOS.dll <Tomcat home>/bin/Win32NetBIOSx64.dll <Tomcat home>/bin/Win32Utils.dll <Tomcat home>/bin/Win32Utilsx64.dll