From f41ed4446075fdfe6b3a3e0aa60cade109db8f98 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 3 Dec 2018 17:21:28 +0100 Subject: [PATCH] mysql_backup.sh: adjust comments for configuring backup user (MySQL 8.x). --- hosts/scripts/mysql_backup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/scripts/mysql_backup.sh b/hosts/scripts/mysql_backup.sh index 2b3b104..804f44e 100755 --- a/hosts/scripts/mysql_backup.sh +++ b/hosts/scripts/mysql_backup.sh @@ -41,10 +41,14 @@ ## - ## - INSERT INTO user (Host,User,Select_priv,Super_priv,Process_priv,Lock_tables_priv,Show_view_priv,Event_priv,Execute_priv,ssl_cipher,x509_issuer,x509_subject) VALUES('localhost','backup','Y','Y','Y','Y','Y','Y','Y','','',''); ## - +## - FLUSH PRIVILEGES; +## - ## - GRANT BACKUP_ADMIN ON *.* TO 'backup'@'localhost'; ## - ## - ALTER USER 'backup'@'localhost' IDENTIFIED BY 'backup'; ## - +## - FLUSH PRIVILEGES; +## - ## - ## - MariaDB (10.1.x) ## -