Disable mariadb mysql history client logging

Environment variable MYSQL_HISTFILE is added to mariadb container
to disable storing client mysql history to ~/.mysql_history file.

Change-Id: Ie95bc1f830fbf34d30c73de07513299115d8e8c5
This commit is contained in:
Huang, Sophie (sh879n) 2021-03-12 20:32:55 +00:00
parent 69a7916b92
commit 87429ebb86
4 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,7 @@ apiVersion: v1
appVersion: v10.2.31
description: OpenStack-Helm MariaDB
name: mariadb
version: 0.1.10
version: 0.1.11
home: https://mariadb.com/kb/en/
icon: http://badges.mariadb.org/mariadb-badge-180x60.png
sources:

View File

@ -175,6 +175,8 @@ spec:
name: mariadb-dbaudit-password
key: MYSQL_DBAUDIT_PASSWORD
{{- end }}
- name: MYSQL_HISTFILE
value: {{ .Values.conf.database.mysql_histfile }}
ports:
- name: mysql
protocol: TCP

View File

@ -320,6 +320,7 @@ conf:
days_to_keep: 14
storage_policy: default-placement
database:
mysql_histfile: "/dev/null"
my: |
[mysqld]
datadir=/var/lib/mysql

View File

@ -11,4 +11,5 @@ mariadb:
- 0.1.8 Change Issuer to ClusterIssuer with logic in place to support cert-manager versioning
- 0.1.9 Uplift Mariadb-ingress to 0.42.0
- 0.1.10 Rename mariadb backup identities
- 0.1.11 Disable mariadb mysql history client logging
...