External Web Database Pre-work
Software Risk Manager includes a MariaDB database that requires no configuration on your part, so you can skip this section if you do not plan to use an external database instance.
Your MariaDB/MySQL database must be on port 3306.
If you prefer an external database, the web workload supports MariaDB version 10.6.x and MySQL version 8.0.x. Complete the configuration tasks shown below before installing Software Risk Manager with an external web database.
-
optimizer_search_depth=0
-
character_set_server=utf8mb4
-
collation_server=utf8mb4_general_ci
-
lower_case_table_names=1
-
log_bin_trust_function_creators=1
The log_bin_trust_function_creators
parameter is required when using
replication (sometimes enabled by default).
Refer to the Web Database Workload Requirements section for database instance configuration details.
To create the database catalog and Software Risk Manager database user:
- Create a database user.
You can customize the following statement to create a user named "srm." Remove
REQUIRE SSL
when not using TLS (your database instance may require security transport).CREATE USER 'srm'@'%' IDENTIFIED BY 'enter-a-password-here' REQUIRE SSL;
- Create a database catalog.
The following statement creates a catalog named srmdb:
CREATE DATABASE srmdb;
- Grant required privileges on the database catalog to the database user you created.
The following statements grant permissions to the srm database user.
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, CREATE TEMPORARY TABLES, ALTER, REFERENCES, INDEX, DROP, TRIGGER ON srmdb.* to 'srm'@'%'; FLUSH PRIVILEGES;
If your database configuration requires Software Risk Manager to trust a certificate (e.g.,
the Amazon RDS root certificate), follow the Trust
Certificates instructions to trust your database certificate and update the volumes
section of your docker-compose-external-db.yml
file.