summaryrefslogtreecommitdiff
path: root/trove/templates
diff options
context:
space:
mode:
authorLingxian Kong <anlin.kong@gmail.com>2020-10-13 23:51:46 +1300
committerLingxian Kong <anlin.kong@gmail.com>2020-10-23 23:50:39 +1300
commitd1af33f17b0994ac1d0ca5acca91f2f29bc82ce9 (patch)
tree03d0da87c98820a21b1d4c87523df90410bf3e89 /trove/templates
parent4df3dceeeee8d92f1c876effa4375f88e3249bca (diff)
downloadtrove-d1af33f17b0994ac1d0ca5acca91f2f29bc82ce9.tar.gz
Support mysql 8.0
* MySQL 5.7 and MySQL 8.0 need different percona-xtrabackup package version. Added Percona XtraBackup 8 support for MySQL 8.x backup and restore. * Construct different backup container image names for MySQL 5.7 and MySQL 8.0 based on the default option value. * Two docker images are uploaded for backup/restore: openstacktrove/db-backup-mysql5.7:1.0.0 and openstacktrove/db-backup-mysql8.0:1.0.0. Trove guest agent can automatically choose the approriate one based on the datastore version. * Added option "secure-file-priv=NULL" in MySQL config template to fix https://github.com/docker-library/mysql/issues/541. * Stop using IDENTIFIED BY in GRANT clause (also REVOKE). Starting with MySQL 8 creating a user implicitly using the GRANT command is not supported. Story: #2008275 Task: #41143 Change-Id: Ibdec63324b1b39ba9b8a38dbe529da17bbb06767
Diffstat (limited to 'trove/templates')
-rw-r--r--trove/templates/mysql/config.template1
1 files changed, 1 insertions, 0 deletions
diff --git a/trove/templates/mysql/config.template b/trove/templates/mysql/config.template
index b005c406..acfa5e04 100644
--- a/trove/templates/mysql/config.template
+++ b/trove/templates/mysql/config.template
@@ -11,6 +11,7 @@ nice = 0
port = 3306
basedir = /usr
datadir = /var/lib/mysql/data
+secure-file-priv = NULL
tmpdir = /var/tmp
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock