Follow these instructions to write the database connection string in the
IBM Spectrum LSF Application Center configuration file $PERF_TOP/conf/datasource.xml with
encrypted passwords.
Before you begin
Ensure that you have a user name, password, and URL to access the database.
Procedure
-
As root, log on to your LSF Application Center server
host.
-
Set your environment:
-
Start the database configuration tool.
Run the command $PERF_TOP/1.2/bin/dbconfig.sh -edit ReportDB -console.
- In the User ID and Password fields, specify the user account name and password with which
to connect to the database.
- In the JDBC driver field, select the driver for
your database. Select 0 for the MariaDB driver.
- In the JDBC URL field, enter the URL for your database.
For example:
jdbc:mariadb://mydbhost:3306/pac?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT
- In the Maximum connections field,
specify the value of 100, the maximum
allowed number of concurrent connections to the database server.
- Enter 1 to test your database connection.
- Enter 2 to save and exit.
-
Check that the file $PERF_TOP/conf/datasource.xml was updated.
For example:
<ds:DataSource Name="ReportDB"
Driver="org.gjt.mm.mysql.Driver"
Connection="jdbc:mariadb://mydbhost:3306/pac?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT "
Default="true"
Cipher="des56"
UserName="uOTzmooF4Qw="
Password="uOTzmooF4Qw=">
<ds:Properties>
<ds:Property>
<ds:Name>maxActive</ds:Name>
<ds:Value>100</ds:Value>
</ds:Property>
</ds:Properties>
</ds:DataSource>