...
Parameter | Value |
---|---|
|
|
|
|
Example installation
...
Encrypted and non-encrypted connections
Most cloud-native services (such as Amazon RDS for MySQL or Azure Database for MySQL) will require an encrypted database connection. To configure this, you will need the following settings:
require_secure_transport = 1
in the database - for many public cloud provider database services, this will be set by defaultuseSSL=true
in the database URL used by PhixFlow to connect to MySQL
However, there are scenarios in which a secure connection is not required - such as when MySQL and Tomcat are both installed on the same server. For this type of configuration to work, you will need the following settings:
require_secure_transport = 0
in the databaseallowPublicKeyRetreival=true
in the database URL used by PhixFlow to connect to MySQL
For instructions on how to set the database URL, see here: Install the PhixFlow Webapp.
For official MySQL documentation on database connections, see here: https://dev.mysql.com/doc/refman/8.0/en/connection-options.html.
For Azure MySQL Flexible Server
Expand |
---|
For Azure Database for MySQL (including the Flexible Server option), the only setting you need to udpate is You can update this (to
|
Example installations
The following configurations are suggested as a guide. It incorporates They incorporate the minimum requirements for MySQL databases above. It
For Ubuntu 22.04 and MySQL 8.0
Expand |
---|
This example is based on an installation of MySQL Community Edition on the Ubuntu distribution of Linux. Installation on other distributions of Linux will follow a very similar pattern. For Debian-based distributions, many of the commands will be identical. For RHEL-based distributions, the commands will be similar, replacing |
...
. |
...
Install
Set configurationThe command below sets the configuration you need to run PhixFlow. This creates a PhixFlow specific configuration file (
To help determine a suitable Most cloud-native services (such as Amazon RDS for MySQL or Azure Database for MySQL) will require an encrypted database connection. To configure this, you will need the following settings:
However, there are scenarios in which a secure connection is not required - such as when MySQL and Tomcat are both installed on the same server. For this type of configuration to work, you will need the following settings:
For instructions on how to set the database URL, see here: Install the PhixFlow Webapp. For official MySQL documentation on database connections, see here: https://dev.mysql.com/doc/refman/8.0/en/connection-options.html. You may want to override the default binary log retention settings. By default, this is set to 30 days. Note that the binary logs for a busy database can become large - over 30 days, this could be equivalent to the size of the database itself, or even larger if you are deleting and inserting a large number of records. The simplest option is to reduce the value of If you do not intend to use binary logs for database recovery (i.e. you are relying on a different backup solution), you can turn binary logging off. See here for more details: https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_log_bin - make sure to pay attention to how the variables relate to each other. Restart MySQL:
HardeningTo harden the installation, run:
Respond to the questions in the following way:
Switching to unix_socket authentication means there is no password for root, instead anybody with sudo access can log in using If the first option does not come up, respond to |
...