Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note

The following examples use a mysql database. You will need to make the necessary modifications with your database specifications in order for the following steps to work.

 

Step 1. Create Placeholder Database

 No data will actually be migrated there, but it is required to validate uPortal connectivity settings.

Code Block
languagebash
mysql -u root -p mysql
create database myws401;
create user 'myws401user'@'localhost' identified by 'myws401pass';
grant all on myws401.* to 'myws401user'@'localhost';

Step 2. Update Database Dependencies

File Location: uPortal-4.0.2-quick-start/pom.xml

...

Code Block
languagehtml/xml
<dependency>
 <groupId>mysql</groupId>
 <artifactId>mysql-connector-java</artifactId>
 <version>5.1.6</version>
</dependency>

Step 3. Provide Placeholder Database Connection Details

Properties File Location: uPortal-4.0.2-quick-start/uPortal-4.0.2/uportal-war/src/main/resources/properties/rdbm.properties

Code Block
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.url=jdbc:mysql://127.0.0.1:3306/myws401
hibernate.connection.username=myws401user
hibernate.connection.password=myws401pass
hibernate.dialect=org.hibernate.dialect.MySQLDialect

Step 4. Run Ant Targets

Build File Location: uPortal-4.0.2-quick-start/uPortal-4.0.2/build.xml

...