From a6e8416551b56793defbec8b07860c34a807bd03 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 3 Dec 2018 11:41:04 +0100 Subject: [PATCH] mysql_backup.sh: add documentation comment for MySQL 8.0. --- hosts/scripts/mysql_backup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/scripts/mysql_backup.sh b/hosts/scripts/mysql_backup.sh index b64367a..3848f26 100755 --- a/hosts/scripts/mysql_backup.sh +++ b/hosts/scripts/mysql_backup.sh @@ -34,6 +34,14 @@ ## - Password field is now: "authentication_string" ## - INSERT INTO user (Host,User,authentication_string,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',password('backup'),'Y','Y','Y','Y','Y','Y','Y','','',''); ## - +## - +## - Since MySQL 8.x - Password is now set by an extra statement - 'password' function +## - is no longer supported +## - 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','','',''); +## - +## - ALTER USER 'backup'@'localhost' IDENTIFIED WITH mysql_native_password BY 'backup'; +## - +## - ## - MariaDB (10.1.x) ## - ## - INSERT INTO user (Host,User,Password,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',password('backup'),'Y','Y','Y','Y','Y','Y','Y','','','');