Configuring a MySQL Database
If you are using MySQL as the Fortify Software Security Center database, you must configure the MySQL options file.
Caution! Fortify Software Security Center requires that all database schema collations be case-sensitive. If your installation is case-insensitive, Fortify Software Security Center cannot work correctly.
Note: For information about the supported versions of MySQL, see the Micro Focus Fortify Software System Requirements document.
Tip: If you use SSL to connect Fortify Software Security Center to MySQL, Fortify recommends that you increase the allowed number of concurrent clientScanner supported by Security Fortify WebInspect Enterprise that connects to WebInspect Enterprise to receive license permissions, updates or scan data, and which also presents a user interface through which scans may be conducted. WebInspect Enterprise controls permissions for a client and also provides the policies used by clients. A client can be configured to upload scan results to WebInspect Enterprise automatically at the completion of the scan or only when specifically instructed by the user. connections by increasing the value of the max_connections
system variableBuilding blocks for performance indicators; storage for measurement values that count issues, conditions, and similar categories of numeric data. (in the my.cnf
file). This can prevent the Too many connections
error from occurring.
To configure the MySQL options file:
- Stop MySQL server.
- Navigate to the MySQL server installation directory.
-
Open the MySQL options file in a text editor.
Tip: To locate the options files and the order in which they are read, run the following command from a terminal:
mysql --help
.-
On Windows systems, the default options file is
my.ini
.Note: The default location for MySQL 5.7 is
c:\ProgramData\MySQL\MySQL
Server 5.7
. - On Linux systems, the default options file is
my.cnf
.
-
-
In both the
[mysqld]
and[mysqldump]
sections, setmax_allowed_packet
to1G
.If the
[mysqldump]
section is not there, create it. -
In the
[mysqld]
section, configure the settings in the following table. If a listed setting is not included in the file, add it.Setting Value innodb_lock_wait_timeout
300
(recommended) Expressed in secondsinnodb_buffer_pool_size
512M
(Fortify recommends10GB
or more)Note: If you increase this value without also increasing the
innodb_log_file_size
value, uploads of large FPR files can fail.default-storage-engine
INNODB
innodb_large_prefix
1
max-allowed-packet
16777216 sql_mode
TRADITIONAL
Note: MySQL 5.7.5 and later versions have a default
sql_mode
setting that includes theONLY_FULL_GROUP_BY
flag. This option is incompatible with the queries that Fortify Software Security Center issues. - Make sure that MySQL is set up with Barracuda or a newer file format to enable the dynamic row format feature. For more information, see the MySQL documentation for the innodb file format and for dynamic row formats.
- Save the file, and then restart MySQL server.