The MySQL database stores its configuration settings in the my.cnf
file. This file is located under the conf
directory inside the MySQL cartridge installation. As mentioned in the previous recipe, OpenShift does not allow users to update the my.cnf
configuration file. The solution is to use a set of environment variables to configure various settings of the MySQL database.
At the time of writing this book, you could configure the following MySQL settings through the environment variables:
MySQL setting |
OpenShift environment variable |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|