uPortal est configuré pour utiliser une base de données HSQL par défaut.
Cette configuration de base de données ne convient pas aux déploiements de production mais est mieux adaptée à des fins de test.
uPortal prend en charge un certain nombre de bases de données de production et vous pouvez configurer la base de données MariaDB.
Editer le fichier /etc/mysql/my.conf
default-storage-engine=INNODB
lower_case_table_names=1
innodb_file_format=barracuda
innodb_file_per_table=true
innodb_large_prefix=true
mysqldbVersion=5.1.45
dependencies {
/*
* Add additional JDBC driver jars to the 'jdbc' configuration below;
* do not remove the hsqldb driver jar that is already listed.
*
*/
jdbc "org.hsqldb:hsqldb:${hsqldbVersion}"
jdbc "mysql:mysql-connector-java:${mysqldbVersion}"
/*
* These are nearly the same uPortal dependencies declared by uPortal-webapp;
* perhaps we should create a uPortal-all module to bundle them all as transitives.
*/
Dans la partie Database Connection
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.url=jdbc:mysql://localhost/portlets
hibernate.connection.username=uportal
hibernate.connection.password=uportal
hibernate.connection.validationQuery=select 1
hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
hibernate.connection.driver_class=com.mysql.jdbc.Driver hibernate.connection.url=jdbc:mysql://localhost/uportal hibernate.connection.username=uportal hibernate.connection.password=uportal hibernate.connection.validationQuery=select 1 hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
./gradlew dataInit
./gradlew tomcatDeploy