UniTime Install Step
Require
- Java Development Kit 6.0+
- Apache Tomcat 7.0+
- MySQL 5.5+ and MySQL Connector/J
- Download UniTime from UniTime Downloads
- Extract
unitime-4.2_bld175.zip
file Setup
timetable
database- MySQL install script are located in
/doc/mysql
folder of the distribution File
schema.sql
contains the database schema- Edit some SQL statement
- Old statement
#OLD Statement drop user timetable@localhost; create user timetable@localhost identified by password '*2E46E61A1C47ADC309CADC6DF8D89654F013D3DD';
- MariaDB
#MariaDB --drop user timetable@localhost; create user 'timetable'@'localhost' identified by '*2E46E61A1C47ADC309CADC6DF8D89654F013D3DD';
File
woebegon-data.sql
contains test dataCommand
mysql -u root -p -f < schema.sql mysql -u root -p < woebegon-data.sql
- MySQL install script are located in
Custom configuration file
Create file custom.properties located in /UniTime/WEB-INF/classes
- # MySQL Configuration Example
connection.url=jdbc:mysql://localhost:3306/timetable connection.username=timetable connection.password=unitime connection.driver_class=com.mysql.jdbc.Driver dialect=org.hibernate.dialect.MySQLInnoDBDialect tmtbl.uniqueid.generator=org.hibernate.id.TableHiLoGenerator default_schema=timetable
Connector/J
- copy mysql connetcto.jar to tomcat/lib
Deploy