Changeset 7974


Ignore:
Timestamp:
2004-08-18T05:30:26+12:00 (20 years ago)
Author:
kjdon
Message:

moved mysql stuff so that it matches the linux install script, and then compiling is last

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/gs3-install.bat

    r7970 r7974  
    4242:: Copy the modified server.xml into tomcat
    4343cd %GSDL3HOME%\comms\jakarta
    44 copy tomcat\conf\server.xml tomcat\conf\server.xml.bak
     44copy tomcat\conf\server.xml tomcat\conf\server-withexamples.xml.config
    4545"%GSDL3HOME%\winutil\sed.exe" 's,@gsdl3home@,%GSDL3HOME_ESCAPED%,' server.xml.in > tomcat\conf\server.xml
    4646
     
    6363cd %GSDL3HOME%\resources\java
    6464"%GSDL3HOME%\winutil\sed.exe" 's,@gsdl3home@,%GSDL3HOME_ESCAPED%,' SOAPServer.cfg.in > SOAPServer.cfg
     65
     66:: ---- SETUP MYSQL + SAMPLE DATABASES ----
     67:: Set up the SQL DB
     68cd %GSDL3HOME%\packages\mysql
     69"%GSDL3HOME%\winutil\7zip.exe" x mysql-4.0.20d-windows.zip
     70start bin\mysqld
     71bin\mysql --user=root --execute="GRANT SELECT,INSERT,DELETE,UPDATE,DROP,CREATE ON *.* TO gsdl3admin@localhost;"
     72bin\mysql --user=root --execute="GRANT SELECT ON *.* TO gsdl3reader@localhost;"
     73
     74:: Set up any sample collections databases
     75bin\mysql --user=root --execute="create database localsite_gs3mgdemo;"
     76bin\mysql --user=root localsite_gs3mgdemo < %GSDL3HOME%\web\sites\localsite\collect\gs3mgdemo\mysqldatadump.sql
     77
     78bin\mysqladmin --user=root shutdown
    6579
    6680:: ---- WEB.XML FILE ----
     
    123137
    124138:: ---- COMPILATION ----
    125 echo Will now configure and make the code - this may take a while
     139echo Will now compile the code - this may take a while
    126140
    127141:: Make MG and MGPP jar files, and install them
     
    146160copy lib\java\xercesImpl.jar web\lib
    147161
    148 :: ---- SETUP MYSQL + SAMPLE DATABASES ----
    149 :: Set up the SQL DB
    150 cd %GSDL3HOME%\packages\mysql
    151 "%GSDL3HOME%\winutil\7zip.exe" x mysql-4.0.20d-windows.zip
    152 start bin\mysqld
    153 bin\mysql --user=root --execute="GRANT SELECT,INSERT,DELETE,UPDATE,DROP,CREATE ON *.* TO gsdl3admin@localhost;"
    154 bin\mysql --user=root --execute="GRANT SELECT ON *.* TO gsdl3reader@localhost;"
    155 
    156 :: Set up any sample collections databases
    157 bin\mysql --user=root --execute="create database localsite_gs3mgdemo;"
    158 bin\mysql --user=root localsite_gs3mgdemo < %GSDL3HOME%\web\sites\localsite\collect\gs3mgdemo\mysqldatadump.sql
    159 
    160 bin\mysqladmin --user=root shutdown
    161162
    162163:: And provide a nice little postscript
Note: See TracChangeset for help on using the changeset viewer.